Title: Doesn&#039;t work with another jquery function
Last modified: August 21, 2016

---

# Doesn't work with another jquery function

 *  [clamoreaux](https://wordpress.org/support/users/clamoreaux/)
 * (@clamoreaux)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-another-jquery-function/)
 * I had the jquery-mega-menu plugin working fine until I added another jquery script
   to my header.php. Any ideas why the following code causes the jquery-mega-menu
   plugin to quit functioning? If I take the very first line out, the jquery-mega-
   menu plugin works, but the slide-panel quits working.
 * I can’t post a link to the site because it is on a local server only right now.
 *     ```
       <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
       <script type="text/javascript">
       	$(document).ready(function(){
       		$(".btn-slide").click(function(){
       			$("#slide-panel").slideToggle("slow");
       		});
       	});
       </script>
       ```
   
 * Further down in the header.php is the following:
 *     ```
       <div id="slide-panel"><!--SLIDE PANEL STARTS-->
   
       				<div class="loginform">
       				<div class="formdetails">
       				<form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
       				<label for="log">Username: </label><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" />    
       				<label for="pwd">Password: </label><input type="password" name="pwd" id="pwd" size="20" />
       				<input type="submit" name="submit" value="Login" class="button" />
       				<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
       				</form>
       				</div>
       				<div class="loginregister">
       				<a href="<?php echo get_option('home'); ?>/wp-register.php">Register</a> |
       				<a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a>
       				</div>
       				</div><!--loginform ends-->
       				</div><!--SLIDE PANEL ENDS-->
       				<div class="slide"><a href="#" class="btn-slide">Log in</a></div><!--LOGIN BUTTON TEXT-->
       			<?php endif; ?>
       ```
   
 * [https://wordpress.org/plugins/jquery-mega-menu/](https://wordpress.org/plugins/jquery-mega-menu/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [clamoreaux](https://wordpress.org/support/users/clamoreaux/)
 * (@clamoreaux)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-another-jquery-function/#post-4663987)

Viewing 1 replies (of 1 total)

The topic ‘Doesn't work with another jquery function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-mega-menu_e7e7e7.svg)
 * [JQuery Mega Menu Widget](https://wordpress.org/plugins/jquery-mega-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-mega-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-mega-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-mega-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-mega-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-mega-menu/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 1 participant
 * Last reply from: [clamoreaux](https://wordpress.org/support/users/clamoreaux/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-another-jquery-function/#post-4663987)
 * Status: not resolved