javascript - Change H3 text to input val with Jquery -
i have straight forward question. have h3 tag text in it. need have text show text value inputted in text field, how can make h3 text same text field jquery?
here id of h3, detectivefill_1 here id of input loc_else_text
thanks in advanced!
this update h3
element on input focus lost
$('#loc_else_text').change(function(){ $('#detectivefill_1').text(this.value); });
this update instantly on key pressed
$('#loc_else_text').keyup(function(){ $('#detectivefill_1').text(this.value); })
Comments
Post a Comment