Essentially, this is my code:
$('#press').click(function() { alert('First') });
$('#press').click(function() { alert('Second') });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<button id="press">press</button>
How can I make sure if the second event handler-$('#press').click(secondFunction);
is executed only after the first event handler-$('#press').click(firstFunction);
is finished?