I'm setting up a page with javascript that should fire on a click event.
It works most of the time except the first time a page loads.
If I refresh it though, it works and the click events fire properly.
$(document).ready(function() {
$(".element").click(function() { alert("This should work"); }
});
Anybody have an idea where the issue might be?