I have 2 places a user can click and both need to fire off the same .click() event
I know I can do 2 click events that I bind to the same function
$('element').click(function(event) {
bind newfunction();
});
eg: above times 2.
But I wanted to ask if there was a way to have the two events connected to the one click
eg: this is my pseudo code idea
$('element') || $('element').click(function(event) {
bind newfunction();
});
is a variation of this possible? thx
Just comma separate elements