JavaScript code to stop form submission

前端 未结 12 2069
感情败类
感情败类 2020-11-21 06:40

One way to stop form submission is to return false from your JavaScript function.

When the submit button is clicked, a validation function is called. I have a case i

12条回答
  •  名媛妹妹
    2020-11-21 06:44

    All your answers gave something to work with.

    FINALLY, this worked for me: (if you dont choose at least one checkbox item, it warns and stays in the same page)

    
    
        
        
        
            


    MY LIKES
    First Name:
    Last Name:
    Convert to uppercase
    Convert to lowercase
    Do not convert

    Maths Physics Chemistry

提交回复
热议问题