♦ jQuery get val()
♣ Example3: jQuery get val()
Returns the Value content of selected HTML element from the form.Below is the representation of jQuery get val() Syntax.
Basic Syntax
$(selector).val();
selector: the HTML element to be selected
val(): syntax for selecting value from form input.
In this example, .val(): syntax for selecting value from form input.
Example
Input:
Output: