user3011922
user3011922

Reputation: 183

Remove Click Events From All Elements

I'm aware of .on() and .off(), but how can I do something to ALL elements on the entire page? Something like this:

$('all-elements').off('click');

Upvotes: 1

Views: 27

Answers (1)

Arun P Johny
Arun P Johny

Reputation: 388316

use *(all element) selector

$('*').off('click');

Upvotes: 2

Related Questions