slackero / phpwcms

Flexible, fast, powerful, customer, developer friendly web content management system and cms framework
http://www.phpwcms.org
GNU General Public License v2.0
92 stars 45 forks source link

Attach `click` Handler to `document` #294

Closed marcus-at-localhost closed 4 years ago

marcus-at-localhost commented 4 years ago

The recommended way to do it. .on() is available since jquery 1.7.

slackero commented 4 years ago

Merge changes, thanks – but I attach .on() to the ID itself instead of the whole document.