There is such a code
$("#start").click(function(){ $(this).attr("id", "submit"); }); $("#submit").click(function(){ alert("something"); }); Question: why is the alert not executed when clicking on the same item? After all, I changed his id to another when I first clicked, therefore, I expect that actions will be performed when clicking on the same element already with the id of "submit", but this does not happen.