Changing button text onclick

后端 未结 18 2565
野性不改
野性不改 2020-11-27 03:10

When I click on myButton1 button, I want the value to change to Close Curtain from Open Curtain.
HTML:

<         


        
18条回答
  •  孤街浪徒
    2020-11-27 03:48

    This worked fine for me. I had multiple buttons which I wanted to toggle the input value text from 'Add Range' to 'Remove Range'

    
    

提交回复
热议问题