how to bind custom event


Bind the onError event. 
 
$('selector').bind('onError',{msg:"error occured"},false); 
 
This event is triggered whenever error is occurred as below: 
 
$("selector").trigger("onError",handler); 
 
function handler(e) 
{ 
alert(e.msg); 
}
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments