...

View Full Version : Lock select box



ksridhar69
08-23-2002, 08:00 PM
I have select box. After selecting the value. Onblur I want to lock this select box. So that user cannot change again. IS it possible?

<select name="type" size="1">
<option value = "01">01</option>
<option value = "02">02</option>
<option value = "03">03</option>
</select>

adios
08-23-2002, 08:42 PM
This could really piss some people off:

<select name="type" size="1"
onchange="this.locked=true;this.blur()"
onfocus="if(this.locked)window.focus()">
<option selected="selected">choose</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
</select>

...don't mention my name...

NinjaWarrior
08-23-2002, 09:25 PM
This could really piss some people off in the event they prematurely select an option they really didn't want...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum