Event Namespace in Jquery

Jquery provides custom events using namespace. A Event Callback method can be attached with a custom event  to a HTML element.A namespace can be created and used to a event using dot operator. In this Demo,"We will attach a click event with namespace for all the LI elements inside a Un-Ordered List". Below code shows a namespace 'StudentName' attached to click event for LI element followed by a css color change to red.$('.student-container li').on('click.StudentName', function (e) {
cons...
 •  0 comments  •  flag
Share on Twitter
Published on November 18, 2013 08:00
No comments have been added yet.