Get the content of the value attribute of the first matched element.
In jQuery 1.2, a value is now returned for all elements, including selects. For multiple selects an array of values is returned.
For older versions of jQuery use the fieldValue function of the Form Plugin.
Examples:
| Name | Type |
|---|