hi ;
I have a problem about jquery datetimepicker,I have assigned default date value page load and When I change to it and click button the date value change to defalt after buton code executed
So ; I assign 01.11.2015 as default and change to it 01.07.2015 and click button then the date value changed to 01.11.2015 ,my code like bellow .
$(document).ready(function () {
var date = new Date();
var today = new Date();
var firstOfMonth = new Date(today.getFullYear(), today.getMonth(), 1);
date.setMonth(date.getMonth() + 1, 1);
$("#Bastar").datepicker({
defaultDate: firstOfMonth,
showOn: "button",
buttonImage: "/Images/calendar.ico",
buttonImageOnly: true
});
$('#Bastar').datepicker('setDate', firstOfMonth);
});
Thanks in advance .