|
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 |
brokedev Smarty n00b
Joined: 06 Dec 2016 Posts: 3
|
Posted: Thu May 18, 2017 7:45 pm Post subject: datalist with smarty |
|
|
hey i want to make a dropdown list with datalist with smarty but i don't know i mean i want this:
<label>Choose a browser from this list:
<input list="browsers" name="myBrowser" /></label>
<datalist id="browsers">
<option value="Chrome">
<option value="Firefox">
<option value="Internet Explorer">
<option value="Opera">
<option value="Safari">
<option value="Microsoft Edge">
</datalist>
like this:
{html_options name=foo options=$myOptions selected=$mySelect}
output this:
<select name="foo">
<option label="Joe Schmoe" value="1800">Joe Schmoe</option>
<option label="Jack Smith" value="9904" selected="selected">Jack Smith</option>
<option label="Charlie Brown" value="2003">Charlie Brown</option>
</select> |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu May 18, 2017 8:37 pm Post subject: |
|
|
Well, what's holding you up?
You want it? Go ahead and write it.
Do keep in mind, though, that this tag has limited support across browsers. |
|
Back to top |
|
brokedev Smarty n00b
Joined: 06 Dec 2016 Posts: 3
|
Posted: Tue May 23, 2017 7:44 pm Post subject: |
|
|
AnrDaemon wrote: | Well, what's holding you up?
You want it? Go ahead and write it.
Do keep in mind, though, that this tag has limited support across browsers. |
What's holding me?
I don't know if smarty manage datalist not a select.
i don't want a select i want a datalist its the same process? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
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
|