Question: what is the difference between val and value in jquery?
Answer: . val() works on all input type elements in a useful way, including <select> ...even in the cases of <select multiple> , checkboxes, and radio buttons (in which . val() gets or sets an array of selected values not just a string). ... attr('value') behaves the same in some situations, like textboxes.