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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -