Please excuse me if this is a newbie question. I am new to this.
I would like that a user fill out a form with their info and, just before clicking submit, there to be a summary of details area where they confirm their details are correctly entered.
So is it possible for me to "bind" specific inputs to specific spans or divs and as they type (or maybe onBlur?) the span would reflect what is written in the respective input???
Populate div with id somediv
with whatever is typed the input with id inputid
each time a key is pressed:
$('#inputid').keyup(function() {
$('#somediv').html($(this).val());
});
$('#myFormField').bind('change', function(){
$('#myTargetSpan').text($(this).val());
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With