I woull like to dynamic populate field month and year when i write on date on first field
<input id="dateField" type="date"></input>
<input id="month" type="text"></input>
<input id="year" type="text"></input>
<script>
var month= $("input[type='text'][id='month']");
var month= $("input[type='text'][id='year']");
$(dateField).keypress(function(){
//help me construct this
month.val()
year.val()
});
</script>