When should i wrap a DOM object with $()?

Viewed 6139

Using JQuery:

Sometimes, I can do variable.val() and it works. Sometimes, I'm required to use $(variable).val().

I want to be able to make the choice without trial-and-error.

Does anyone know when to wrap an object with $() while using JQuery?

6 Answers
Related