javascript - How to Store Randomly Selected date Value in Jquery Calender -



javascript - How to Store Randomly Selected date Value in Jquery Calender -

my code:

<div id="calendar"></div> date:<input type="text" id="datepicker_send" name="datepicker_send" readonly="readonly" > <script> $('#calendar').datepicker({ altfield: '#datepicker_send', inline: true, firstday: 1, showothermonths: true, daynamesmin: ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'] }); </script> <script> var x = document.getelementbyid('datepicker_send').value; document.write (x); </script>

textfield date changing when click on other date var "x" giving default todays date only.

i want changed dates in calender stored in "x" live.

can help how solve case?

try appending changedate function calendar date need on change.. example,

$('#calendar').datepicker({ altfield: '#datepicker_send', inline: true, firstday: 1, showothermonths: true, daynamesmin: ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'] }).on('changedate', function() { document.write ($('#datepicker_send').val()); });

javascript jquery

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -