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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I lock a selection in a multi select box?

Status
Not open for further replies.

cawthor

Programmer
May 31, 2001
89
US
I have a multi select box. Is there a way that I can 'lock' one item as permanantly selected (so the user can not de-select it)?
 
Implement an onchange() handler, within which make sure that the index of the specific nth option (zero-based) be selected via the script line below before the handler returns its control to its caller.
[tt] document.formname.selectname.selectedIndex=n;[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top