Dot Net Interview Questions and Tutorials By Dr. Rajesh Rolen
Attach a trigger event for publisher $('div').on('click', function(e) { $(this).trigger('MyEvent',e,parameterValue); }); Attach subscriber methods $(document).on('MyEvent', function(e,parameterValue) { //Do your stuffs with parameterValues.. });
Post a Comment
No comments:
Post a Comment