WordPress.org

Ready to get started?Download WordPress

Forums

help with inserting jquery (2 posts)

  1. suavedesign
    Member
    Posted 1 year ago #

    Can I add jquery to one of my pages? Because I am trying, and it does not seem to be working. I am doing this in one of the pages, in the dashboard.

    This is the code I am putting in:
    <head>

    <script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    	dynamicFaq();
    });
    
    function dynamicFaq(){
    	$('dd').hide();
    	$('dt').bind('click', function(){
    		$(this).toggleClass('open').next().slideToggle();;
    	});
    }

    </script>
    </head>

    If it cannot be done this way, where would I put the link to my js document? On which php page?

    Thank you.

  2. tomontoast
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.