> I don't see there is something deal with multiple-select situation in > forms.js. And serialize( ) in form.js, you return a hash value, and > this will only hold one value if the input element has the same name. > So I'd like your below idea "introduce a serializeToString", and I > think it's better. But in my thread I also point that param() method > in jQuery core will only receive jQuery object or hash, but not a > string at all. And I think param() method should also be changed.
Hi limodou, The serialize method in forms.js handles multiple-select fields just fine. It does not return a hash, it returns an Array. Each selected option element is added to the array. I have a test page that shows this in action here: http://www.malsup.com/jquery/form/ Cheers. Mike _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
