jquery - update textbox when paragraph changes value -


i trying populate textbox value of paragraph element when

value changes. using jquery. when text in

changes, nothing happens. below jquery.

$(document).ready(function(){ $('#textbit').change(function(){     var isbn = $('#textbit').val();     alert(isbn);     $('#isbn').val(isbn); }); }); 

try:

$(document).ready(function(){     $('#textbit').change(function(){         var isbn = $('#textbit').text();         $('#isbn').val(isbn);     }); }); 

Comments

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -