JavaScript Help
JavaScript Help
Out of context: Reply #7
- Started
- Last post
- 8 Responses
- mitsu0
simple, just check the selected index property of the listbox to make sure the value (index) you don't want selected isn't.
example:
select tag:
onchange='selchange(this)'script header:
function selchange(obj)
{
if(obj.selectedIndex==0)
{
alert("Invalid selection.");
}
}