aspose file tools*
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
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:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Enable/Disable the datepicker