If I want to save this as a jQuery DOM object and then select it, which method below should I use?
var element = $(this)
And then for selecting
$(element)
Or simply
var element = this
Also, if I want then to concatenate element into a larger selector, is this:
$(element + " .class")
the right way?
Then you can use
elementinstead of$(this). You don’t have to insertelementinto$()anymore.For example :
element.remove()instead of$(this).remove()