Show me a Simple javascript onSubmit handler

后端 未结 4 445
被撕碎了的回忆
被撕碎了的回忆 2021-01-19 18:01

Hello again everyone i am working on this



        
4条回答
  •  误落风尘
    2021-01-19 18:42

    I've added an example here of how to do it:

    http://jsfiddle.net/tomgrohl/JMkAP/

    I added an onsubmit handler to the form:

    And added this at the top of the page, a simple validation function:

    
    

提交回复
热议问题