ID attributes in Smarty design templates
Posted: Sat Feb 24, 2007 10:02 am
Hi,
I've tried using the Smarty html_options function to produce a drop-down list box contain data from an array obtained from a database.
This works fine. However, I notice that I can't seem to get the html_options function to include an 'id' tag in the <select> tag it generates, only the name attribute.
This seems a glaring omission, as it would suggest I can't access it using the JavaScript DOM on all browsers using the more reliable getElementById() method.
Am I missing something?
Many thanks
I've tried using the Smarty html_options function to produce a drop-down list box contain data from an array obtained from a database.
This works fine. However, I notice that I can't seem to get the html_options function to include an 'id' tag in the <select> tag it generates, only the name attribute.
This seems a glaring omission, as it would suggest I can't access it using the JavaScript DOM on all browsers using the more reliable getElementById() method.
Am I missing something?
Many thanks