jQuery Date Picker where text input is read only

Posted by Rowan Parker on Stack Overflow See other posts from Stack Overflow or by Rowan Parker
Published on 2010-05-05T06:53:13Z Indexed on 2010/05/05 6:58 UTC
Read the original article Hit count: 281

Filed under:
|
|
|

Hi all,

I want to use the Jquery datepicker. I've got it setup using an the alt field option. I'm displaying Y-M-D in the text field, but submitting Y-M-D. Everything works fine so far, sending the correct data, etc.

However I want to stop the user from being able to manually type a date. I add originally set the INPUT field to disabled, which worked in every browser except IE. In IE it would popup the date picker but then not close after clicking a date.

Does anyone know the best way to do this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about input