I'm looking for a simple way to get the separated day, month, and year values from a input
of type date
, in jQuery.
$( "#ano" ).html($( "input[type=date]" ).val( ) );
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><inputtype="date" value="2018-10-17">
<div id="ano"></div>
How do I get the separated values without using split()
?