cycling jQuery_Succinctly | Page 63

Setting/getting the value of an input element The val() method can be used to set and get the attribute value of an input element (button, checkbox, hidden, image, password, radio, reset, submit, text). Below, I set the value for each input in val() and then alert the value using the val() method. Sample: sample 59.html