wood burning stoves 2.0*
The moose likes JSF and the fly likes Enable/Disable the datepicker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Enable/Disable the datepicker " Watch "Enable/Disable the datepicker " New topic
Author

Enable/Disable the datepicker

Sam Saha
Ranch Hand

Joined: Jan 23, 2010
Posts: 104
I have one drop down and one InputText field with a datepicker in this Input field. We have three options in the drop down("Select one", "Yes", "No"). If we select the "Yes" option then the InputText field will be enable and we can select a date from the datepicker as well. But when we select the option "Select one" or "No" the InputText field will be disable and also we can not select date from datepicker. I wrote the jquery the foolowing way only the Inputfield getting enable and disable but not the datepicker. I would appreciate if someone can help me so that both works together. Thanks!!

HTML:


Script:

 
 
subject: Enable/Disable the datepicker
 
Similar Threads
disabled issue for inputtext
Clear validation message dynamically for the Datepicker
Enable/Disable a Button
Datepicker Validation