Deselect the Value in ListBox (Urgent)
I need an urgent help from you.
When we dynamically genrate any list box (Select Box) it shows one default value as selected.
Is there any way that we can deselect that value.
I tried with document.form_Name.ListBox_Name.options.selected = false;
I don't want any value to be selected in the list Box.
Its quite urgent.
The select box must show a "first value". If you want nothing, write
<option value="something">Something else</option>
Or as most web sites put...
"Please Select an option" as the first element, then test for it in validation.
53 6D 61 72 74 41 73 73
I got the reply...
This is the solution...
document.form_Name.ListBox_Name.selectedIndex = -1;
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)