Show/Hide different forms based on a option selected

后端 未结 7 1323
暗喜
暗喜 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:26

    make this

    1. create function javascript that help u with that work, something like this

      function FFF(){ var opc = document.getElementById("form-shower").value; switch(opc) { 'form_name1': document.getElementById('form_1').style.display = "block"; // or inline or none whatever break;

      } }

    2. Create event

    0 讨论(0)
提交回复
热议问题