$(document).on('click','#submit',function () { $(this).addClass("disabled") $(this).html(' {{__("Submitting")}}'); });