Wordpress and JQuery

For some reason the following two pieces of script stopped working.  Are they formatted correctly to work with wordpress?

<script type="text/javascript">
jQuery(document).ready(function($) {
    $("#menu-menu-2").hide();
    $(".mtoggle").click(function() {
        $("#menu-menu-2").slideToggle(500);
    });
});
</script>

<script type="text/javascript">
jQuery(document).ready(function($){  

    $(".addon-28-bicycle-info[value-of-accesories]").keyup(function(){
    $(".product-addon-xl-tall-depend").show('slow');
	});
	
	$("#get_empty_quote").click(function()	{
	$("#empty_quote_title").hide(2300);
	});
});
</script>	

Open in new window

LVL 7
rgranlundAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
Look fine, do you have a link to look at?
0
Jason C. LevineNo oneCommented:
Concur, that should work.

Is prototype being called?
0
rgranlundAuthor Commented:
spokeinsurance.com/index

If you reduce the browser size, the menu does not collapse.  When you enter a value, email and state it does not validate that info.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

GaryCommented:
You have jquery included twice - remove one of the references

Secondly you are referencing $ without passing it into the function
$( ".my-contract" ).click(function() {

The we'll go from there.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgranlundAuthor Commented:
I don't understand what this means?
Secondly you are referencing $ without passing it into the function
$( ".my-contract" ).click(function() {
0
GaryCommented:
	<script>
		// you need to pass $ into the function here
		//jQuery( document ).ready(function() { // this is wrong
		jQuery( document ).ready(function($) { // this is correct
		$( ".my-contract" ).click(function() {
			$( "#my_contract" ).show("slow");
			$( ".print-declaration").show("slow"); 
		});
	});
	</script>

Open in new window

0
rgranlundAuthor Commented:
AHHHHH!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.