Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Unselect the combo box options?


Message #1 by "Sukhi Samra" <sukhdeepsamra@h...> on Wed, 24 Oct 2001 21:01:20
each of the options has a selected property which you can set to false, 
like this:
function deSelect(objSelect) {
	for (var i=0; i<objSelect.length; i++)	
		objSelect.options[i].selected = false;
}

you would use something like deSelect(document.formname.selectname) to 
call this function.

HTH
Phil
> Is there way to Unselect the options within the the combo box after the 
> alert  messagage. ( so that none of teh option is selected?)
> 
> let me know, if anyone knows the solution.
> Thanks,
> 
> Sukhi

  Return to Index