Okay i have no idea why my second button isn't working. It seems straight forward but for some reason it is not working. The "Reset" button does not appear to be calling the clear() function.
Here is the HTML. I have two buttons that interact with a database. The first one, "Update", is to filter the search results. And the second, "Reset", is to reload the page. Right now I'm just trying to get minimal functionality out of the "Reset" button.
Here is the HTML:
<script src = "filter.js" type="text/javascript"></script>
...
<input type = "button" value = "Update" onclick = "filter(...);">
<input type = "button" value = "Reset" onclick = "clear();">
And then the javascript in filter.js:
function filter(...) {
...
}
function clear() {
alert("Alert");
}