Testcase for jQuery Ticket 7483

Wrong order of statements

by jitter

HTML

<input type="button" id="ok" value="ok" />

JavaScript

//runs before click handler is bound so ok! of course won't be shown
$("#ok").click(function() {
    alert("Bound before");
});

$("#ok").trigger("click");

$("#ok").click(function() {
    alert("Bound after");
});