> a = new Array()
> $(':checkbox').each(function() {
> if (this.checked) {
> if (this.id) a.push(this.id);
> }
> });
>a = [] equals a = new Array() but 'var' is used to limited the variable scope. -- I like python! UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
