Reputation:
I often use .class
to select a single html element. However, this is not correct. I've read somewhere that using #id
is the optimal approach when using jQuery. How much faster is using #id
instead of .class
when trying to select a single element?
Upvotes: 1
Views: 404