|
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 |
geoB Smarty Regular
Joined: 09 Sep 2010 Posts: 46
|
Posted: Thu Dec 29, 2011 4:38 pm Post subject: html_options & class oddity |
|
|
I'm curious about the following behavior:
With the template code Code: | {html_options name="county" class="smallform" options="$counties"} |
I get Code: | <option value="0" class="smallform option">Select a county</option>
<option value="1" class="smallform option">Placer</option>
<option value="2" class="smallform option">Nevada</option>
<option value="3" class="smallform option">Washoe</option>
<option value="4" class="smallform option">El Dorado</option> |
I expected that the class name would not be included in the option tag.
The page behaves as expected, so this is no big deal. I'm just stumped by the code.
Thanks.
George |
|
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
|