简体   繁体   中英

how to call multiple functions on onSubmit

I am trying to call two functions on onSubmit but it is calling only the first function.

following is the code:

<form name="reg_indi_form" method="post" onSubmit="return (validate() && req());" enctype="multipart/form-data">

在这种情况下, validate()必须返回true以便执行req()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM