How do i get classes with jquery?

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.

Read more here: How do i get classes with jquery?

Leave a Reply

Your email address will not be published. Required fields are marked *