Hidden property of a button in HTML

It also works without jQuery if you do the following changes: Add type=”button” to the edit button in order not to trigger submission of the form. Change the name of your function from change() to anything else. Don’t use hidden=”hidden”, use CSS instead: style=”display: none;”. The following code works for me: