I don't think you can 'get' class attributes (though you could try $ ('div').attr('class');). I you can get the ids. I set the id and then use jquery search class so if you had [code] <div class="profile" id="p1"></div><div class="profile" id="p2"></div> [/code] etc. you could get the divs by using [code] $('div.profile').attr('id'); [/code]
- [jQuery] what is the best way to do this Armand Datema
- [jQuery] Re: what is the best way to do this pedalpete
- [jQuery] Re: what is the best way to do this ricardobeat