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

22nd Aug 2020, 9:11 AM
Kingsley Elemchukwu
Kingsley  Elemchukwu - avatar
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// ")' >
22nd Aug 2020, 9:22 AM
Divya Mohan
Divya Mohan - avatar
+ 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
22nd Aug 2020, 9:23 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Wow, Thanks for your answers guys. I'll try them with my code
22nd Aug 2020, 9:38 PM
Kingsley Elemchukwu
Kingsley  Elemchukwu - avatar
0
Divya Mohan thanks for the correction...noted
22nd Aug 2020, 9:38 PM
Kingsley Elemchukwu
Kingsley  Elemchukwu - avatar
0
🗡️ Ulduz 🗡️ thanks for your contribution, the site was helpful.
22nd Aug 2020, 9:49 PM
Kingsley Elemchukwu
Kingsley  Elemchukwu - avatar