Hi,
Yo can always set the textfield readonly to avoid this.
- Original Message -
From: "MorningZ"
To: "jQuery (English)"
Sent: Wednesday, August 26, 2009 7:29 AM
Subject: [jQuery] Re: Datepicker issue
"to me it seems wierd or inconsistant that the
date
"to me it seems wierd or inconsistant that the
datepicker won't allow you to pick a date beyond the maxDate, but you
can enter it manually and nothing happens"
Hence it's "date picker" and not "date enter-er", it does it's job,
let's the use *pick* a date from a calendar
On Aug 26, 7:55 am, sak
Yeah, I was wanting to avoid the need to write a function..or
freezing the textbox.to me it seems wierd or inconsistant that the
datepicker won't allow you to pick a date beyond the maxDate, but you
can enter it manually and nothing happens (it should revert back to
the maxDate)..
any
hi,
you can try this
$("#datepicker").change(function() {
var date1=$("#datepicker").val();
var myday = new Date(date1);
var today= new Date();
var one_day=1000*60*60*24;
chan_date=Math.ceil((myday.getTime()-today.getTime())/(one_day));
var m
4 matches
Mail list logo