Utilize Custom Events in jQuery Using on() and trigger()
Posted by: DotNetBips.com Latest Articles,
on 09 Mar 2015 |
View original | Bookmarked: 0 time(s)
Handling client side DOM events such as click and keypress is a common task in the jQuery code. The DOM events are always bound to some or the other HTML element. However, there can be situations where you may need to flag some application specific behavior or event. Luckily, jQuery allows you to define your own events that can be raised from within your code. This article shows how jQuery's on() and trigger() methods can be used for the task just mentioned....