search button interference

search button interference

Hey, I can't seem to unbind my search button with the function I added

  1. <script>
  2.         $(document).ready(function() {
  3.             $("searchButton").click(function() {
  4.                 $(this).slideToggle();
  5.             });
  6.              
  7.             $("searchButton").click(function() {
  8.                 $("searchButton").unbind();
  9.             });
  10.         });
  11. </script>
It is interfering with the function to my blog archive buttons

  1. <script>
  2. $('button').each(function() {
  3.  
  4.   /* "each" in jQuery lets us apply what's inside here to each button individually without having to give them each their own names. Imagine this code going down the line and repeating everything below for each of the buttons. */
  5.  
  6.   var $thisButton = $(this);
  7.  
  8.   /* To refer to the individual button inside of this section we can use $(this), but to try and make the rest of this more clear, I'm going to rename $(this) to $thisButton */
  9.  
  10.   $thisButton.click(function() {
  11.    
  12.     var $thisButtonsDropdown = $thisButton.siblings();
  13.    
  14.     /* Sibling here means "on the same level as the button." We need to do this to find the section of months or links that matches this button we clicked, so that we slide up/down the right one--the one we want is the one that is next to it, its sibling. */
  15.    
  16.     /* This part should be a little familiar! */
  17.     if ($thisButtonsDropdown.is(':visible')) {
  18.       $thisButtonsDropdown.slideUp();
  19.       $thisButton.removeClass('flip');
  20.     } else {
  21.       $thisButtonsDropdown.slideDown();
  22.       $thisButton.addClass('flip');
  23.     }
  24.   });
  25. });
  26. </script>
As Firefox's Inspect Element shows. What should I do?


"I can only show you the door. You're the one that has to walk
through it." ~ Morpheus The Matrix