I am using Two types of datepicker in my page in one field I am using jQuery Multidatepicker and on another input field I am using datepicker. Both are working fine but the problem is datepicker is not hiding after selecting a date.
HTML
<div>
<label>Start Date:</label> <br />
<s:textfield type="text" readonly="true" id="startDate" name="startDate"
class="form-control" autocomplete="off"/>
</div>
JAVASCRIPT In below code I used autoclose: true, but not working.
$("#startDate").datepicker({
prevText : "click for previous months",
nextText : "click for next months",
showOtherMonths : true,
dateFormat : 'dd/mm/yy',
selectOtherMonths : false,
maxDate : new Date(),
autoclose: true
});
In below code I used autoHide: true, still not working
$("#startDate").datepicker({
prevText : "click for previous months",
nextText : "click for next months",
showOtherMonths : true,
dateFormat : 'dd/mm/yy',
selectOtherMonths : false,
maxDate : new Date(),
autoHide: true
});
I wants to close calendar after selecting date automatically. Please tell me what is the problem.