Devika Sujith• 175
@DCoder18
Posted
Hi Pete,
Good attempt. The reason why your reset button submits is because you added submit
to the type
attribute. You don't need this here unless your sending data to an external page. Instead, set it as <input type="button">
.
For the reset button, try using a separate reset function. In that function, you can set all your variables like bill
, tip
, people
etc. to 0
.
0