javascript - how to copy the value from one date box to next box -


how copy value 1 date box next box

<?php  $dat=date("y-m-d");?> <td><input type="date"  value=<?php echo $dat;?> name="from" onchange=fun1();/></td>   <td class=to>to:<input type="date" value= name="to"></td> 

like below:

$('input[name=to]').val($('input[name=from]').val()); 

or if want copy value form from to when from changed:

$('input[name=from]').change(function() {     $('input[name=to]').val($(this).val()); }); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -