|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
<select> <option> an element in DOM ?For an html <select> control , does the browser store each <option> as a
separate element in the DOM tree ? Or are the select options stored in some other manner ? Something like
<select name="sample" id="sample"> <option value="1">The first</option> <option value="2">The Second</option> <option value="3">The Third</option> </select> <script type="text/javascript"> function showOptions() { var ddl=document.getElementById('sample'); for(i=0;i<ddl.options.length;i++) { alert('Text:' + ddl.options[i].text + ',value:' + ddl.options[i].value); } } </script> <input type="button" onclick="showOptions()" value="Show options" /> should show you the idea Show quoteHide quote "John Grandy" <johnagrandy-at-gmail-dot-com> wrote in message news:OunvWz2kHHA.4900@TK2MSFTNGP05.phx.gbl... > For an html <select> control , does the browser store each <option> as a > separate element in the DOM tree ? > > Or are the select options stored in some other manner ? >
Event not firing. User control with a repeater that contains a bu
Problem with Hyperlink to text files asp:Menu, DynamicItemTemplate and formating text Multiple User Controls _I_don’t_show_the_header? How to bind a textbox to a data source subject Validation Summary MessageBox Validation Summary MessageBox Help Please on Wizard Control (Need to validate) |
|||||||||||||||||||||||