Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with unselecting listbox 1

Status
Not open for further replies.

LikeThisName

Vendor
May 16, 2002
288
US
THIS CODE WORKS IF LIST IS SELECT MULTIPLE
Code:
	for (i=0;i<List.length;i++)
	{
		alert(List.options[i].text);
		List.options[i].selected = false;
	}

I need it to work on single select

in a single select once you select you can't seem to unselect so is changing it from a single to a multiple to use the code above then change back to single

AN OPTION?

TIA,


LikeThisName <- ? Sorry It's Taken =)
 
This appears to be JScript. Perhaps you should post here:
forum216

[blue]"Well, once again my friend, we find that science is a two headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is BAD! Oh, beware the other head of science, Arthur; it bites!!" - The Tick[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top