+ 4
22nd Jun 2021, 8:03 AM
Mohit Gehilot
Mohit Gehilot - avatar
4 odpowiedzi
+ 5
Just use onclick = "comp()" In place of onclick = "function comp()"
22nd Jun 2021, 8:07 AM
🌸 Sara 🌸
🌸 Sara 🌸 - avatar
+ 4
<button type="button" onclick="comp()">Compare</button>
22nd Jun 2021, 8:11 AM
Charan Leo25
Charan Leo25 - avatar
+ 3
Thank you everyone
22nd Jun 2021, 9:35 AM
Mohit Gehilot
Mohit Gehilot - avatar
+ 2
onclick="comp()" not: onclick="function comp()"
22nd Jun 2021, 8:05 AM
visph
visph - avatar