Skip to content

Commit

Permalink
Reset Working in page
Browse files Browse the repository at this point in the history
  • Loading branch information
niravjdn committed Nov 18, 2019
1 parent 470f265 commit 14fc87b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ <h2>
<i class="fa fa-search" aria-hidden="true"></i> Search
</button>

<button id="resetButton" type="button" class="btn btn-primary"
onclick="customReset()">
<i class="fa fa-refresh" aria-hidden="true"></i> Reset
</button>
</div>
</form>
</div>
Expand Down Expand Up @@ -151,10 +147,5 @@ <h2>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>

<script>
function customReset() {
document.getElementById("vehicle").reset();
}
</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ <h2> Reservation History View </h2>
document.getElementById("filterForm").reset();
document.getElementById("client").selectedIndex = 0;
document.getElementById("dueDate").value = "";
document.getElementById("status").selectedIndex= 0;
document.getElementById("vehicle").selectedIndex= 0;
}

Expand Down

0 comments on commit 14fc87b

Please sign in to comment.