codeGK
Code it ALL
jQuery get val() - CodeGK

♦ 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, .
Example
Input:
Output: