Hi everyone. Having some problems with this form. There should be a Javascript solution, but I can't find the answer:
I want a form that prompts the user for a specific date if they choose a certain option(Meals on a specific date) from a drop down list.
This is what I have so far.
I tried to hide the text box then un-hide it if the user chooses "Meals on a specific date"
Any suggestions would be appreciated.
I want a form that prompts the user for a specific date if they choose a certain option(Meals on a specific date) from a drop down list.
This is what I have so far.
Code:
<form name="GetOrderChoice" action="glist.asp" method="post">
<p></p>
<p>
<p><font SIZE="5">Enter your preference of report: <select Name="OrderChoice" size="5" onFocus="if (this.value = "InputDate") document.getElementById('ReportDate').Type=text; else document.getElementById('ReportDate').Type=hidden;">
<option Value="bydate">All Pending Meals </option>
<option Value="InputDate">Meals on a specific date.</option>
<option Value="TomorrowsMeals">All of Tomorrow's meals.</option>
<option Value="ByName">Listing by service member's name. </option>
<option Value="AllRecords">All Records old and new. </option>
</select></font>
<p>
<input type="Hidden" name="ReportDate" Value="repdate" length=20>
<input type="submit" name="submitbutton" value="Submit">
</form>
I tried to hide the text box then un-hide it if the user chooses "Meals on a specific date"
Any suggestions would be appreciated.