I have a page where you can view a hotel's information. On this page is a little form to search for room availability for the hotel page you are on.
<form id=form1 name=form1 action=search.asp method=POST>
<input type=hidden id=Hotel name=Hotel value=<%= HotelID %>>
Arrive: <input value=<% strURLBookingDate %> type=text id=ArrivalDate name=ArrivalDate>
Depart: <input value=<% strURLBookingDate2 %> type=text id=DepartureDate name=DepartureDate>
<input type=submit name=btnHotelSearch value=Search This Hotel>
<input type=submit name=btnHotelSearchAll value=Search All Hotels>
</form>
But I also need to add a button to the form that will allow me to search all hotels if I click it. For that to happen, I just need to set the hidden input value named Hotel to 0 when the button is clicked.
How can I set that hidden value before the form is submitted when I click btnHotelSearchAll?