JQuery datepicker defaultdate from another datepicker

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2010-05-27T01:07:42Z Indexed on 2010/05/27 1:11 UTC
Read the original article Hit count: 503

Filed under:
|

Hi, I have several jquery datepickers on my asp page and I want to set the defaultdate of date picker to be the same as the previous datepicker.

I am currently using

defaultDate: document.getElementById('<%=txtFirstDate.ClientID%>').value

This works okay, but obviously errors if firstDate is null. Should I be using OnSelect function instead?

Appreciate any help

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about datepicker