|
Dave Methvin wrote: I know that it does what it says it does. That's not the point. The point is that it only works on the input element. I'm sorry, but I think that should be spelled out. Obviously a number of people thought it would retrieve the value of the selected option(s) in a select (or multiple select) box and that it would retrieve all text between the opening and closing textarea tags. What would be wrong with adding those? There's probably a perfectly good reason, I just don't know what it is. At the very least, it would be nice to document the seemingly common misconception that this method does not handle those cases and point the reader to the proper method. I don't know what I would have expected $("div").val() to return, but I, personally, probably wouldn't have thought to use it that way. I would only have thought to use it on form elements: inputs, textareas, and selects. The API also does not discuss here what this method returns if the input is a check box or radio button. Does it return that it is checked (like f.mycheckbox.checked)? Chris |
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
