If I have a button:
<button id="button1">
Normally I would write:
$("#button1").click(function ()
{
//do something
}
But I want to define a function that responds to all click events except when someone clicks on this button.
Is there a selector that would allow me to target all other clickable elements in the document except button1
?