Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save baladkb/51034db62159a8c83ad2208fc6efae90 to your computer and use it in GitHub Desktop.
Save baladkb/51034db62159a8c83ad2208fc6efae90 to your computer and use it in GitHub Desktop.
How to apply onclick function for dynamic class's and id's ?
<input type="checkbox" class="ck_filter">
$(document).ready(function() {
$(document).on( 'click', '.ck_filter', function () { ... });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment