snippet library logo
The Best Html Forum Around
in category
Javascript / Forms / enable/ disable text field
Snippet details
ID: 481
Viewed: 1301
Added: 2002-09-03
Version:
View Demo

User Rated at: 3 Stars
Rate This:
Snippets in this catagory         
Show Printable Version
allows you to control whether a user can input something into a text area or not.

General Details
Snippet uploaded by: Dr. Web
Email : harbor31@hotmail.com
Snippet By: Dr. Web

<!---Head--->
<script language="javascript">
function skip(){ this.blur(); }
</script>

<!---Body--->


<FORM NAME="formName" method="">
<input type="text" name="aTextField" length="10" onfocus="skip()">
</form>
 <A HREF="javascript:document.formName.aTextField.onfocus = skip; void
(0)">disable text field</A>
  <A HREF="javascript:document.formName.aTextField.onfocus = null; void
(0)">enable text field</A> 




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.