Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

html_options & class oddity

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
geoB
Smarty Regular


Joined: 09 Sep 2010
Posts: 46

PostPosted: Thu Dec 29, 2011 4:38 pm    Post subject: html_options & class oddity Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP