2
I have a function in jQuery
which I do through the event .on('change')
, but I also needed that same function to happen in page loading, but I don’t know how to do this, call two events in a function.
Code of function on jQuery
:
$j("#fullname").on('change',function(){
alert("Teste");
});
Can give a
trigger
in the statement itself$("#fullname").on('change',function(){alert("Teste");}).trigger('change');
– Mathiasfc