I have a problem. I want to change the date in the input field to the current date. Here is my code:
<input type="date" id="datum currentdate">
$(document).ready( function() {
    var now = new Date();
    var day = ("0" + now.getDate()).slice(-2);
    var month = ("0" + (now.getMonth() + 1)).slice(-2);
    var today = now.getFullYear()+"-"+(month)+"-"+(day) ;
    $('#currentdate').val(today);
});
But this doesn't work. I have included jQuery. Does anyone know a solution for this problem?
 
     
     
    