How do i put an onclick and a return false statement in the same submit button?

后端 未结 4 1241
走了就别回头了
走了就别回头了 2020-12-06 17:51

From what i understand, the default treatment for return false is:


However in my c

4条回答
  •  青春惊慌失措
    2020-12-06 18:47

    No you cannot have 2 onclick declarations but you can call multiple functions in the same onclick like:

    
    

    And in the other function you can have:

    function anotherFunction(){
      return false;
    }
    

提交回复
热议问题