Currently, I am facing an issue with the jQuery datepicker functionality. It seems to work fine when clicking on a button in Mozilla Firefox, but unfortunately, it does not function properly in Google Chrome or Internet Explorer. Can someone please provide guidance on how to make the datepicker work seamlessly across all browsers? You can view the code on jsfiddle
HTML
<input type="button" id="selectdate" value="">
<textarea name="dates" id="dates" maxlength="160" placeholder="your message" rows="4" cols="50"></textarea>
JQUERY
$( "#selectdate" ).datepicker({
altField: $('#dates').val(),
numberOfMonths:1,
altFormat: "yy-mm-dd",
minDate: -0,
onSelect: function( selectedDate ) {
$("#selectdate").val('');
$('#dates').val($('#dates').val()+','+selectedDate);
}
});