Mat,

This code:

>     if (t == 'select-multiple') {
>         $('option', this).each( function() {
>             if (this.selected)
>                 a.push({name: n, value: this.value ||
> $(this).text()});
>         });
>         return;
>     }

Can be changed to this, if i am right ;)

>     if (t == 'select-multiple') {
>         $('[EMAIL PROTECTED]"selected"]', this).each( function() {
>             a.push({name: n, value: this.value || $(this).text()});
>         });
>         return;
>     }

Other then that,

Great code!

-- Gilles

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to