[jQuery] Unified approach to get the value of input fields
Hello there,
A textarea's value is inside the actual textarea tags, while input
fields values is stored in the value attribute on the tag. Is there a
unified way to get the value of both text areas and input fields? $
(":input").attr("value") works for input fields, $(":input").text()
works for textareas. But not for both. Ideas?