Question: Say I have 2 Javascript files, `includeFirst.js`, and `includeSecond.js`, which are loading into the page. IF the first contains some code like:

```
$('#myButton').click(function() {
   alert('Hello World');
}

```

And the second contains:

```
$('#myButton').click(function() {
    alert('World Hello');
}

```

I'm getting both alerts popping up. Is there any way I can add something to the .click in the second so that the first doesn't run?

I realize this coding method seems sloppy/bad, but it's just to fix a bit of legacy code that will be fully rewritten soon. I'd just like to fix this temporarily.

Answer: 
You can use the Unbind function to remove all the click events that are bound to the element.

```
      var myButton = $("#myButton");
      myButton.unbind('click');
      myButton.click(function() {
          alert('World Hello');
      }

```

NOTE: this code has not been tested.
try using event.preventDefault() in your second click event