Hi !
Generating a dynamic HTML page which
gets a list of items in <SELECT> from db.
Onload of the html page i want to add text
"Select..." as the first item in the list.
How do i do it?
Code as follows:
[HTML]<select id='cities'>
<option value='1'>City1 </option>
<option value='2'>City2 </option>
<option value='3'>City3 </option>
......
...
..
</Select>
[/HTML]
In the above code i need to add the text "Select..."
as first item.
Thanks in advance!
Hash
Generating a dynamic HTML page which
gets a list of items in <SELECT> from db.
Onload of the html page i want to add text
"Select..." as the first item in the list.
How do i do it?
Code as follows:
[HTML]<select id='cities'>
<option value='1'>City1 </option>
<option value='2'>City2 </option>
<option value='3'>City3 </option>
......
...
..
</Select>
[/HTML]
In the above code i need to add the text "Select..."
as first item.
Thanks in advance!
Hash
Comment