Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created August 19, 2020 05:21
Embed
What would you like to do?
// JavaScript:
/* handle click event */
document.getElementById('counter').addEventListener('click', () => {
counter++;
});
// jQuery:
/* handle click event */
$('#counter').on('click', () => {
counter++;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment