How to Get/Set a Form Value 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);