How to insert Javascript snippet
-
Hi Folks,
Can someone please tell me where to put a basic jquery hide/show script?
I’ve added jquery in the header using:
<?php wp_enqueue_script("jquery"); ?>
But where do I put the script itself?
<script type="text/javascript"> var $j = jQuery.noConflict(); $j(document).ready(function() { function togglebox(id) { var e = document.getElementById(id); if (e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } }); </script>
Please dont direct to these pages as I’ve read them numerous times and they don’t help. Thankyou
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘How to insert Javascript snippet’ is closed to new replies.