how to I get classes with jquery? I know that $("#nameOfId") gets id, so I assumed $(".nameOfClass") would get class...
The problem is that id is unique while class isnt. I've tried something like $(".nameOfClass")[2].top(), but this doesn't work.
Edit1: Thanks! $(".nameOfClass").position().top worked!
$(".nameOfClass").eq(2).top().position().top