HTML required readonly input in form

后端 未结 13 2062
执笔经年
执笔经年 2020-12-13 08:36

I\'m making a form. And on one input tag is an OnClick event handler, which is opening a popup, where you can choose some stuff, and then it autofi

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 09:28

      function validateForm() {
        var x = document.forms["myForm"]["test2"].value;
        if (x == "") {
          alert("Name missing!!");
          return false;
        }
      }
      

提交回复
热议问题