0

HTML CODE

After you're done with the html code...lets say for example it was about student details....what can i do at the end of the code so that it can have both "SUBMIT" and "CANCEL" options????

23rd May 2022, 8:25 AM
Evans Ogega
2 Answers
+ 2
Use button for submit and use another button for cancel
23rd May 2022, 8:41 AM
Mikeey
Mikeey - avatar
+ 1
Evans Ogega Why you need CANCEL option even you can confirm by user through JavaScript alert whether user wants to submit details or not. alert("Do you want to submit details ?") { //submit data } else { alert ("Data will not be submitted"); } Instead of CANCEL option I think you should have RESET option to clear all entered data.
23rd May 2022, 9:14 AM
AĶ¢J
AĶ¢J - avatar