Get the name (type) of the event that was fired (triggered)

event.type will get you what you want.

DEMO

See also:
List of event types

$('#button').on('click change', function(){
    console.log(event.type + ' is fired');
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<input type="text" id="tipo-imovel" />

Leave a Comment