A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
problem with dropdown
Joined: Aug 01, 2005
Jan 11, 2007 05:37:00
<select name="Year" id="Year"><option value="<%=currentYear-1%>"><%=currentYear-1%></option><option value="<%=currentYear%>" selected><%=currentYear%></option><option value="<%=currentYear+1%>"><%=currentYear+1%></option> </select>
In the above dropdown, even if other options are selcted, only the default value (currentYear)gets submitted always. What can go wrong?
Joined: Nov 24, 2005
Jan 11, 2007 17:36:00
1. Use the "View Source" of your browser, and make sure that the generated html is correct.
2. Show us how you're trying to retrieve the value from the request.
All roads lead to JavaRanch
It is sorta covered in the
JavaRanch Style Guide
subject: problem with dropdown
displaying year through listbox
How to fix dropdown width
colored text in dropdown
[Solved] EL doesn't work as per expectation
populating one dropdown box depending on the value of other dropdown box
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014