|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
gopia Smarty n00b
Joined: 01 Apr 2014 Posts: 1
|
Posted: Tue Apr 01, 2014 6:43 am Post subject: Html select and loop |
|
|
I am new to smarty as well as to programming
Will appreciate help to find a solution
I have the following two select input. Here customername is linked with companyname. So in the html form if customername is selected companyname field should reflect the corresponding value. Is that possible through smarty i.e whether we can refresh the html field based on the selected value
Quote: |
<div>
<select class="form-control" name="txtcustomername" required>
{ section name=clist loop=$customername }
<option> { $customername[clist].customer_name } </option>
{/section}
</select>
</div>
<label for="txtcompanyname">Company Name</label>
<div>
<select class="form-control" name="txtcompanyname" readonly>
{ section name=clist loop=$customername }
<option> { $customername[clist].company_name } </option>
{/section}
</select>
</div> |
Thanks & Regards
Gopi |
|
Back to top |
|
daxx Smarty Rookie
Joined: 02 Apr 2014 Posts: 14
|
Posted: Sat Apr 12, 2014 5:21 pm Post subject: |
|
|
sorry... have read wrong...
i think you should work with java or ajax at your problem.
otherwise your site need to reload i think. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|