[jQuery] error essage: css is not a function

2009-12-02 Thread hsfrey
I'm using the following code: var boxes = $('.resizable').get(); // get divs as array for (var i=0; iboxes.length; i++ ) { console.log(boxes[i].id+': left='+boxes[i].css('left')); } I get this error message from Firebug:

Re: [jQuery] error essage: css is not a function

2009-12-02 Thread Dhruva Sagar
Clearly boxes[i] is not a jQuery object. you should try $(boxes[i]).css perhaps Thanks Regards, Dhruva Sagar. On Thu, Dec 3, 2009 at 1:04 AM, hsfrey hsf...@gmail.com wrote: I'm using the following code: var boxes = $('.resizable').get(); // get divs as array

Re: [jQuery] error essage: css is not a function

2009-12-02 Thread Michael Geary
The jQuery object - the return value from $(whatever) - is an array-like object with .length and [0] etc. properties. You don't need to call .get() on it unless you need an actual JavaScript Array object, which is rare. The *elements* of the jQuery object - or the elements of the Array that