Tag Archives: jquey val method
jQuery val Method
jQuery val method : is used to get and set value in form fields.
Syntax of jQuery val() method
Get Value
$(selector).val();
Note : It does not accepts any argument.
It is used to get form field value.
jQuery val Method Example 1
Set Val
$(selector).val(value);
value:value to be set.