thanks:
var fielddata = $("#form_id :input").serialize(); will get the whole form
data, i want to get one filied.and change it value.
maybe my englist level is pool , i want to say ,i have two form in one page.
and between the two form ,have pleplom.
in IE,it ok, in firefox, i find one of both ajaxSubmit() ,then ,will also
submit other form data to my server .
I use code
$(form_id).ajaxSubmit(options);
both of two form, they have different form id and name ,so i don't know .
thanks
2006/12/4, Sam Collett <[EMAIL PROTECTED]>:
On 04/12/06, Brian Miller <[EMAIL PROTECTED]> wrote:
> The "id" and "name" attributes must always be unique on a form. It's
> breaking because you made them the same. They *must* be different, even
> if they are on different forms.
>
> - Brian
Name doesn't have to be unique (how else would radio buttons or
checkbox groups work?), but id's do.
To get field values I do:
var fielddata = $("#form_id :input").serialize();
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
yours 齐永恒
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/