You want:
var a = [];
You've been doing too much C and Java :)
--Erik
On 1/11/07, Michael Geary <[EMAIL PROTECTED]> wrote:
> > var a[];
> > $(':checkbox').each(function() {
> > if (this.id) a.push(this.id);
> > });
> >
> >
>
> I get this error:
> missing ; before statement
> var a[];
>
> (curse my rudimentary javascript skills!)
OK... It says there is a missing ; before the statement "var a[];".
What is before the "var a[];"?
-Mike
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/