jQuery: The Write Less, Do More JavaScript Library

 « Return to Thread: disabling typing in datepicker fields

Re: disabling typing in datepicker fields

by AHeimlich :: Rate this Message:

Reply to Author | View in Thread

$("#datePickerField").attr("readOnly", true)

should work

On Tue, May 13, 2008 at 12:31 PM, sproutworks <brandon@...> wrote:

Is there a way to disable typing in datepicker fields? I only see an
option to disable the whole datepicker, not just typing. It would be
nice if there was an option to disable typing, for now I modified
_doKeyPress to return false.




--
Aaron Heimlich
Web Developer
aaron.heimlich@...
http://aheimlich.freepgs.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@...
To unsubscribe from this group, send email to jquery-ui-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: disabling typing in datepicker fields

LightInTheBox - Buy quality products at wholesale price