[submit id:submit_url_btn "Submit"] jQuery("#submit_url_btn").click(function(e) { alert('if you have alredy submitted the form. Then it will be replaced'); });