JQuery querySelector : is there benefit to selecting by class AND id?

Viewed 793

I inherited some old jquery code, and I notice that the original developer uses query selector ".class #id" all over the place. For example :

 $('.red #mydiv')

Is this better, worse or exactly the same as

 $('#mydiv')

And why? Performance reasons?

My curious mind is dying to know!

5 Answers
Related