Enable Disabled Select Box

Have a combobox <SELECT><OPTION</OPTION></SELECT>,which needs to be made un-editable. If you use the "readonly" attribute, it is editable. And if you use the "Disabled" attribute, you are not able to read the field in the following ASP page after submitting the first one.

To get around the limitations, use "disabled" but fire a javascript function on the onsubmit event of the form and before submitting your page; in script you enable your select box.

Code
document.forms[0].mySel.disabled = false
My3C's
perrychicker
It's easy... it's a PSACAKE!
Back | Tell A Friend | Search this Site
1998 - 2014 psacake.com
Version 3.23

Send me One Million FREE Guaranteed Visitors