0
Hello guys, does anyone know how to use the onclick function on elements.
Elements such as sign up forms or a card that can be toggled to reveal more info
5 odpowiedzi
+ 1
I think onclick is an event not a function as far as I have read in js !!
You can find your desire result as
<input type="button" onclick='alert("form submitted //or do else you want// ")' >
+ 4
You can read solo lessons.
See this-
<button onclick="myFunction()">Click me</button>
For better explanation you can visit this site
https://www.w3schools.com/jsref/event_onclick.asp
0
Wow, Thanks for your answers guys. I'll try them with my code
0
Divya Mohan thanks for the correction...noted
0
🗡️ Ulduz 🗡️ thanks for your contribution, the site was helpful.