Results 1 to 1 of 1
- 04-18-2009, 07:59 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
drop down value not setting in IE7
Hi , i have a drop down of countries which is coming from database and one country name selected by admin that i m comparing with that drop down list if both values are same that value is selected . So the value is setted in mozilla but in IE its not setting it is giving the first element of countries array
/******* Java code***************/
<html:select property="defaultcountry" styleClass="flatbox" style="width:175px;">
<%
for (int k = 0; k < countries.size(); k=k+2)
{
if((Integer.parseInt(global_settings.get(1).toStri ng())==Integer.parseInt(countries.get(k).toString( )))) {
%>
<option value="<%=countries.get(k)%>"selected"><%=countrie s.get(k+1)%></option>
<%
} else {
%>
<option value="<%=countries.get(k)%>"><%=countries.get(k+1 )%></option>
<%
}
}
%>
</html:select>
Here countries is an array of country ids and names from country table and global_settings.get(1) is an country id selected by admin fetching from other table.
plz any solution??Last edited by radhikavk; 04-18-2009 at 08:08 AM.
Similar Threads
-
dynamically changing drop down box on selection in first drop down
By anjali in forum Advanced JavaReplies: 1Last Post: 04-01-2009, 10:28 AM -
Drag and drop
By thayalan in forum AWT / SwingReplies: 1Last Post: 02-16-2009, 03:04 PM -
drop down menu
By mike eriksen in forum AWT / SwingReplies: 2Last Post: 06-19-2008, 07:33 AM -
Drop down menu
By BenNeiderlander in forum New To JavaReplies: 3Last Post: 02-05-2008, 07:35 AM -
Drag and drop
By abhivenugopal in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 01-30-2008, 02:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks