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
Post a Comment