Simple form validation

前端 未结 4 545
北海茫月
北海茫月 2021-01-25 06:32

POST #1

How can I validate this simple form (checking for empty field strings)?

                

Please select your Gift Certificate amount below

4条回答
  •  迷失自我
    2021-01-25 06:59

    A couple of hints that should get you going.

    Add a submit event handler:

    Give IDs to the input fields you want to get.

    
    

    Write the validation code, return false if you don't want to submit.

    
    

提交回复
热议问题