Skip to content

Commit

Permalink
enrich test page
Browse files Browse the repository at this point in the history
  • Loading branch information
shelly_goldblit committed Aug 4, 2023
1 parent 409238f commit bb5be57
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 data-hook="header">My First Heading</h1>
height="142"
data-hook="image"
/>
<form data-hook="form">
<form data-hook="form" id="myForm">
<label for="fname" data-hook="name-label">First name:</label><br />
<input
type="text"
Expand Down Expand Up @@ -88,7 +88,18 @@ <h1 data-hook="header">My First Heading</h1>
<option data-hook="option" value="audi">Audi</option>
</select>

<input type="submit" value="Submit" data-hook="submit" />
<input
type="submit"
value="Submit"
data-hook="submit"
onclick="resetForm()"
/>
</form>

<script>
function resetForm() {
document.getElementById("myForm").reset();
}
</script>
</body>
</html>

0 comments on commit bb5be57

Please sign in to comment.