Home > jQuery > How to Get/Set a Form Value in jQuery
Bookmark and Share

How to Get/Set a Form Value in jQuery

Posted on March 26, 2018 | Filed in jQuery

There are times when you want to get the value of a form element using jQuery. You can do that with:

jQuery(element).val();

Now if you want to set the value of that element, you would use:

jQuery(element).val(value);

Leave a Reply