XprsYrslf @ Twitter
 

Disable Input Box

Disable a html Input box without losing successful-controls with javascript:

<form action="" method="post">
<input type="text" readonly="readonly" onselect="this.blur()"
onfocus="this.blur()" name="SomeTextBox" value=""
style="background-color:lightgrey;cursor:default;">
<input type="submit">
</form>

Leave a Reply