javascript - jQuery Datetimepicker XDsoft: How do I get value from inline calendar? -
i use jquery datetimepicker plugin xdsoft: http://xdsoft.net/jqplugins/datetimepicker/
i have calender displayed inline. here comes code:
html:
<input type="text" id="start_date">
js:
jquery('#start_date').datetimepicker({ format:'d.m.y h:i', inline:true });
my problem: when pick date in frontend, input field not selected date value. changes need make or need add?
html
<input type="hidden" id="start_date">
js
var $startdate = $('#start_date'); $startdate.datetimepicker({ inline:true, sidebyside: true }); $startdate.on('dp.change', function() { var selecteddate = $(this).val(); alert(selecteddate); });
Comments
Post a Comment