probably something like this would work:
var my_obj = new array();
jQuery(".class").each( function () {
    my_obj[jQuery(this).attr("id")] = this.offsetHeight;
});

I havn't tested it so I might be totally wrong :P

On 2/16/07, howard chen <[EMAIL PROTECTED]> wrote:
> How to dynamically saved the height of each object after selection?
>
> e.g.
>
> jQuery(".style") return objects with the same style, I want to save
> the objects ' height as an jQuery variables, how to do that?
>
> ideally, it should be something like that...
>
> my_obj['id_1'] = 100;
> my_obj['id_2'] = 100;
> ...
>
>
>
> thanks.
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>


-- 
——————————————
     Med Vänliga Hälsningar
 Kristinn "Kiddi" Sigmundsson
           0707-971938
——————————————

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to