0
0
001alena0012020-06-05 21:02:20
Working with date/time
001alena001, 2020-06-05 21:02:20

How to put dynamic datepicker value?

Trying to write a script for the minimum date datepicker:

var newdate = parseInt(document.getElementById('nmber1').value);
$( "input#shipping_data" ).datepicker({
dateFormat: "dd.mm.yy",
minDate: newdate,
});


from this field:

<Input class="did" value="06/06/2020" id="nmber1"/>

should pull out value and substitute it for minDate, but it doesn't work((
What's wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question