> I'd propose something like $().fieldValue() and $().fieldSerialize > be added to the form plugin. Both could take an optional > "successful only" argument indicating if non-successful controls > should be ignored. fieldValue() would return the value of the > first matched element, in array form if necessary. fieldSerialize > could build a query string of all matched elements.
That sounds like a good solution to me. It puts the form code with other form code. I just started using the form plugin today and noticed that it doesn't pass along the error callback in ajaxSubmit. I've changed my local copy but I suspect others might want that as well. At first I thought the dilemma on semantic order versus performance could be easily solved by using the form.elements collection, but that collection doesn't include button or [EMAIL PROTECTED] elements. Darn. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
