get checked data on click and load both jquery code example Example: jquery $(document.on click $(document).on("click","#test-element",function() {});