$('#nav li:has(ul)').children('a').click(function(){ return false; });
<script type='text/javascript'>$(function(){ $('#nav li:has(ul)').children('a').click(function(){ return false; });});</script>
<script type=\"text/javascript\" src=\"jquery.js\"></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2'></script>
I have a drop down menu in which only a few are needed for drop downs.. the others are just a single option such as sponsorship
www.leehughes.co.uk
But for the menu with the drop down options the user can click the parent page but there is nothing on that page as I don't need that page..
For example my mutimedia page is empty as well as any other menu with a drop down..
Is there a way I can disable these pages? I remember using # on dreamweaver, this seemed to do the job but now am on wordpress..
any thoughts?
Thanks
It just disable link, didn't remove anything.
Where do I put this then? header or body?
Many thanks :)
and of course you should import jQuery.
What do you mean import jQuery?
I have the script, do I just attach it to a stylesheet or something ?
Thanks again :)
or if you don't have jquery.js:
I have added both pieces of code to my header now but the problem is still there with the parent pages..