javascript - self destruct button in html -


Is it possible to delete html buttons? If it is clicked because it has already presented its purpose after clicking.

Yes, you can disable or hide it. Example:

  & lt; Input type = "button" onclick = "this.disabled = true;" / & Gt;  

However, if you do this on the submit button, it can not work properly. Button's value will not be included in the form data, so if the server button is for data It looks like to find out how the form was submitted, then it will not get it.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -