$("p").click(function () What does this the function really mean?
Hi,
I'm getting a bit annoying. Although I know how to apply the code above. But I need to know what does function inside do.
It make more sense to do this.
$("p").click(paramter 1, parameter2, ...)
{
}
Thus, what does the function () {} relli mean? What is the benefit?
Secondly, I do see people do this $("p").click(greet)
function greet(event)
{
The code will jump to here.
}