melissa555
asked on
drop down menu
I have an asp page that has a drop down menu being populated by a database. This drop down is for time...so there is one for hours and one for minutes. I need it to work so that the user can actually just enter a number like '25' into the box but that doesn't work with a regular select box. it will just go to the '5' value. is there a way to do this. let me know if you need more details.
thanks
thanks
With select boxes, you would have to hit the "2" key 6 times to get down to 25. If you dont want them to use the mouse to select the time, you should just stick with a textbox (with a dropdown for am/pm if applicable)
fyi...
You can also do the hours without a table in something like this:
<select name="hours">
<option value="">Click to select</option>
<% For hours = 0 To 24 Step 1%>
<option value='<%= hours %>'></option>
<% Next %>
<option value="25">over 24</option>
</select>
although working your way through a long drop down is a LOT slower than just typing the number in...
You can also do the hours without a table in something like this:
<select name="hours">
<option value="">Click to select</option>
<% For hours = 0 To 24 Step 1%>
<option value='<%= hours %>'></option>
<% Next %>
<option value="25">over 24</option>
</select>
although working your way through a long drop down is a LOT slower than just typing the number in...
ASKER
Ken,
your solution doesn't allow the user to manually enter the time as well i dont' think. that was my question.
is there a way to be able to either choose or manually enter from a drop down.
your solution doesn't allow the user to manually enter the time as well i dont' think. that was my question.
is there a way to be able to either choose or manually enter from a drop down.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks...that was what I I was looking for. I didn't realize it was so complicated.
You might want to consider looking into AJAX as well...
http://www.w3schools.com/ajax/ajax_httprequest.asp
example: http://www.google.com/webhp?complete=1
http://www.w3schools.com/ajax/ajax_httprequest.asp
example: http://www.google.com/webhp?complete=1