What if different elements have to trigger the same function but on different events ?
$(\'#btnNext\').on(\'click\', function() { /*Same thing*/ }); $(\'#txtFie
$('#btnNext').on('click', myMethod ); $('#txtField').on('change blur', myMethod ); function myMethod() { /*Your Code goes here*/ }