In some of the codes I see, some people use the 'e' character in functions like:
function NomeDaFuncao(e){
alert("teste");
}
I would like to know how it works, what it does, and some examples where I can use it.
In some of the codes I see, some people use the 'e' character in functions like:
function NomeDaFuncao(e){
alert("teste");
}
I would like to know how it works, what it does, and some examples where I can use it.
Use is only a short event. You can pass any variable name you want.
$('#myTable').click(function(anyothername) {
var clicked = $(anyothername.target);
});
You can check out more about treatment of jQuery events .