i want to handling multiple events in one event function. i used jquery ".on" function but it doesn't worked for multiple events. on the following code doesn't work:
$("input.action:checkbox").on('click,change',function(){
alert('bla bla');
});
When clicked or changed any item on this selector i want fire to the same function. but i dont want to in another function handling. as can be seen following example code i dont want:
$("input.action:checkbox").on('click',function(){
changePlease(); // in this func will process
});
$("input.action:checkbox").on('change',function(){
changePlease(); // in this func will process
});
have u got any idea?