search button interference
Hey, I can't seem to unbind my search button with the function I added
- <script>
- $(document).ready(function() {
- $("searchButton").click(function() {
- $(this).slideToggle();
- });
-
- $("searchButton").click(function() {
- $("searchButton").unbind();
- });
- });
- </script>
It is interfering with the function to my blog archive buttons
- <script>
- $('button').each(function() {
-
- /* "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. */
-
- var $thisButton = $(this);
-
- /* 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 */
-
- $thisButton.click(function() {
-
- var $thisButtonsDropdown = $thisButton.siblings();
-
- /* 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. */
-
- /* This part should be a little familiar! */
- if ($thisButtonsDropdown.is(':visible')) {
- $thisButtonsDropdown.slideUp();
- $thisButton.removeClass('flip');
- } else {
- $thisButtonsDropdown.slideDown();
- $thisButton.addClass('flip');
- }
- });
- });
- </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