Skip to content

Commit

Permalink
Update rote_db.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoffin authored Nov 11, 2024
1 parent f1d0892 commit 20dd464
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rote_db.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h2>Filter Table</h2>
<input type="text" placeholder="Time" name="Time">
<!-- Add other fields as necessary -->
<button type="button" id="filterButton">Apply Filter</button>
<button type="button" id="clearButton">Clear Filter</button>
</form>

<h2>Dynamic Table</h2>
Expand Down Expand Up @@ -100,7 +101,11 @@ <h2>Dynamic Table</h2>
populateTable(jsonData); // Initial population of the table
});

$("#filterButton").click(filterTable);
$("#filterButton").click(filterTable);
$("#clearButton").click(function (e) {
e.preventDefault();
$("#filterForm")[0].reset();
});
});
</script>
</body>
Expand Down

0 comments on commit 20dd464

Please sign in to comment.