Andy, >Honestly Dan, I think this is the way that jQuery SHOULD work. If I call >for >the val() of a form control, I shouldn't have to worry about whether it's a >radio button, or a text field. Obviously I can get the value of a specific >radio button, but just give me what's CURRENTLY selected.
I'm sure the main reason it only handles text type elements is to keep the code size down. There's definitely more involved in determining values for the other elements. Personally, I've felt like the val() method should have been removed from the base library already. It's the only method that really is specific to form elements, but it only partially works. I have used it though, when I only needed to access a form field. Also, removing the val() would probably break existing code. -Dan

