Im trying to start a function when the page is loaded by a onload event which i include in the body tag. My function needs the $(this)
value. The problem here is that the $(this) will not work in the function. But it works when I use the onClick event any ideas why and how to fix it?
This don't work.
<body onload="infoPopUp($(this), 3);">
This does.
<body onclick="infoPopUp($(this), 3);">