I have a select tag issue!
[CODE]starttime=request.getParameter(“strtm”);
// where strtm is start time retrieving from URL query string
// strtm may contain any one of the values01:00,02:00,03:00…23:00
Start Time <%if(starttime!=null){%>
<select class=”blueTextField” name=”starttime”>
<% for(int i=0;i<24;i++){ %>
<option value=”<%=time[i]%>”><%=time[i]%></option>
<%}%>
</select>
[COLOR=”DarkRed”][B]I want the starttime value to be selected when the page gets loaded. and the drop down should be as usual.
When I give
[CODE]<option value=”<%=time[i]%>” selected=”<%=starttime%>”><%=starttime%></option>
the value is not getting selected.
ANY IDEAS OR SUGGESTIONS PLEASE???
RAKI.