I saw some code around the web that uses the following statement
if ($($(this)).hasClass(\"footer_default\")) { $(\'#abc\') .appendTo($(this))
You can wrap $ as many times as you want, it won't change anything.
$
If foo is a DOM element, $(foo) will return the corresponding jQuery object.
foo
$(foo)
If foo is a jQuery object, $(foo) will return the same object.
That's why $($(this)) will return exactly the same as $(this).
$($(this))
$(this)