Form

Elements on a test form

Text :
Checkbox :
Radio: 1 2 3
Select :
Textarea :

MultiCheck with keys?:

Textarea insert

These buttons demostrate textarea.insert . The values are appended to the text in the area at the caret's current position. If a user selection is present (drag or shift-select), then the value pairs wrap around the selection (like tags).


serialize() — convert the form values into a query string

characters are encoded through encodeURIComponent, which is proven to be the best alternative to escape()



val()

elm.val() == get , elm.val(something) == set (like jQuery)
select an element and provide a value to see what val() does :
frm. .val()