I have this function:
$("#btn").click(function(e,someOtherArguments)
{ //some code
e.stopPropagation();});
It works, but If I have named function I can't use e because it is undefined.
var namedFunction= function(e,someOtherArguments)
{
//some code
e.stopPropagation();
}
$("#btn").click(namedFunction(e,someOtherArguments));
I would like to use this namedFunction because several buttons use it.