aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes disabling text field after clicking on the checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disabling text field after clicking on the checkbox" Watch "disabling text field after clicking on the checkbox" New topic
Author

disabling text field after clicking on the checkbox

Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 72
say i have a text field and a checkbox. when i type something in the text filed and click on checkbox i should not be able to edit whatever is there in the text filed.
how do i do this? using javascript. and also when i uncheck the checkbox the text field should be editable
Komal Renu
Ranch Hand

Joined: Jul 21, 2011
Posts: 51


Thanks and Regards,
-------------------------------------------------------------------------------------
Komal Renu | krenu@infocepts.com | www.infocepts.com
-------------------------------------------------------------------------------------
Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 72
Once again thank you komal...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: disabling text field after clicking on the checkbox