Hidden property of a button in HTML

后端 未结 2 1441
遇见更好的自我
遇见更好的自我 2021-02-01 03:54

I am trying to show three buttons on one button click. Before a button click all three buttons are hidden. I set the hidden property and I am also calling a function on a button

2条回答
  •  清歌不尽
    2021-02-01 04:27

    It also works without jQuery if you do the following changes:

    1. Add type="button" to the edit button in order not to trigger submission of the form.

    2. Change the name of your function from change() to anything else.

    3. Don't use hidden="hidden", use CSS instead: style="display: none;".

    The following code works for me:

    
    
    
    
    Untitled Document
    
    
    
    

提交回复
热议问题