guys I found this script which work more like I expected.
PHP Code:
$(document).ready(function(){
$("#txtFromDate").datepicker({
numberOfMonths: 2,
onSelect: function(selected) {
$("#txtToDate").datepicker("option","minDate", selected)
}
});
$("#txtToDate").datepicker({
numberOfMonths: 2,
onSelect: function(selected) {
$("#txtFromDate").datepicker("option","maxDate", selected)
}
});
});
I found it on below link
Code:
http://jquerybyexample.blogspot.com/2012/01/end-date-should-not-be-greater-than.html
But I dont know how to match up this thing to mine.
any help is most appreciated...