Getting Ruby Value In Jquery
I have a textarea in which I am populating a database record. I want to access the same value in textarea in jquery.
Solution 1:
What you are looking for is jQuery's val()
function:
$( "textarea#contact_address1").val();
Take a look: http://api.jquery.com/val/
Post a Comment for "Getting Ruby Value In Jquery"