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:
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
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
3 matches
Mail list logo