Show/Hide different forms based on a option selected

后端 未结 7 1321
暗喜
暗喜 2021-02-04 19:28

I would like to know how to show/hide different forms based one form\'s selection.

In the sample code below all three forms are automatically set to display:none. I woul

7条回答
  •  感情败类
    2021-02-04 20:06

    If you don't want to use jQuery, you can add this to the top of your HTML:

    
    

    and then add onChange="changeForm(this)" to your main form. // onChange not case sensitive.

提交回复
热议问题