In this piece of code:
$(function() {
$("div").click(function() {
$(this).before("<p>Hi</p>");
});
});
What does 'this' actually refer to? Does it refer to the whole list of divs, or just to the specific one clicked? And how can I know?
Also, would it matter if I wrote this
without the jQuery sign or are they the same?