Where to put Jquery code?
I'm trying a simple test but no alert is triggered, I put this code under PAGE OPTIONS > CUSTOM JS:
<script>
$(document).ready(function()
{
alert("qwer");
});
</script>
I'm trying a simple test but no alert is triggered, I put this code under PAGE OPTIONS > CUSTOM JS:
<script>
$(document).ready(function()
{
alert("qwer");
});
</script>
Comments
Without the $(document).ready(function() enclosure the alert works. But I need $(document).ready to make sure the javascript runs AFTER the document is finalized and ready.
Hi,
Instead of "$" you must insert "jQuery". Like this:
Best regards
Thanks! It's working now *SOLVED*