I'm trying to copy the input data of multiple fields into one big one, for date of birth.
day value + month value + year value = day value/month value/year value into one other field all together. I made variables of each field and then try to add them in the 'full' input field, but this doesn't work. What am I doing wrong?
Demo: http://jsfiddle.net/J2PHq/
$(function(){
$('.copy').on('keyup blur', function(){
$('.full').val(day + '/' + week + '/' + year);
day = $(".day").val();
week = $(".week").val();
year = $(".year").val();
}).blur();
});
varto define variables