+ 1

Why "cancel" button doesn't work here? 🤔

https://code.sololearn.com/Wxyqr2LKGnZG/?ref=app

18th Feb 2021, 2:54 PM
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™ - avatar
2 Réponses
+ 4
because 'cancel' button is a basic button type: you need to implement code to be executed on click ^^ 'submit' and 'reset' are specific button type, wich comes with default action implemented ;)
18th Feb 2021, 3:21 PM
visph
visph - avatar
+ 2
ꌚꍩꐇꋰꍩꁲꂵ is there any such button that form tag supports ? If not, then you need to add custom function to it if you want to do something .
18th Feb 2021, 3:03 PM
Abhay
Abhay - avatar