so easy, so great!

thanks a lot for the tip, didn't thought about that :)


On Mar 26, 9:40 pm, Sean McKenna <[email protected]> wrote:
> If the concern is that a user could enter a date manually out of
> range, you can set the textfield to readonly.  The user can still
> click in the field to open the datepicker, but will not be able to
> change the value except through the datepicker.
>
> On Mar 26, 10:29 am, naph <[email protected]> wrote:
>
> > hello people, i'm quite new to jquery, i did a lot of RTFM, still i
> > wasn't able to figure out if it's possible to make a validation rule
> > (using Jörn Zaefferer validation plugin) on a date field using the
> > boundaries provided by the minDate and maxDate options used by jquery
> > UI datepicker.
>
> > what makes me want this, is that even if the calendar can only be
> > clicked on the valid dates, a user could still enter a date manually
> > out the range, and won't get any validation error.
>
> > i thought about writing a custom validaiton rule, but my main concern
> > is to be able to get the values for those two params.
>
> > reading on the official documentation, i found this:
> > var maxd= $('.selector').datepicker('option', 'maxDate');
>
> > i was hoping the var would be a date, but instead i get a
> > HTMLInputElement
> > (looks like i'm missing something, but it does seem to return just the
> > same as  $('.selector').val())
>
> > thanks in advance for the help.

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

Reply via email to