jQuery not working (already using jQuery instead of $)
-
I have the following code right before the end of the html head:
<script type="text/javascript"> jQuery(document).ready(function () { jQuery("li:has(ul)").hover(function () { jQuery(this).children("a").click(function() { return false; }); }); }); </script> <script type="text/javascript"> jQuery(document).ready(function () { jQuery("h1").click(function(event){ jQuery(this).hide("slow"); }); </script>
The first one works which disables the links on parents with children pages for obvious reasons.
The second one was me playing around to test my jquery knowledge so far (barely starting). I want it to slowly hide the page title when I click on it which is enclosed in an h1 tag. But it’s not doing it. Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘jQuery not working (already using jQuery instead of $)’ is closed to new replies.