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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -