简体   繁体   中英

Onclick attribute with multiple function

Is there any way i can call three function which takes input as a parameter and return nothing? I don't want to use click event of jquery i am looking to pass three function in attribute level.

Thanks

If you want a more specific answer, please ask a more specific question. The following answer is valid for

Is there any way i can call three function which takes input as a parameter and return nothing? I don't want to use click event of jquery i am looking to pass three function in attribute level.

<button onclick="first(1);second(2);third(3);">go</button>

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