<SELECT id='naicsCode' NAME='naicsCode' class='textfield1' selectedValue='<c:out value="${viewObject.naicsCode}"/>' >
<%if(viewObject.getNaicsCode().equals("")){%>
<option value="" selected="selected"> </option>
<%} else {%>
<option value="<%=viewObject.getNaicsCode()%>" selected="selected"><%=viewObject.getNaicsCode()%></option>
<%}%>
<OPTION VALUE='Agriculture, Forestry, Fishing and Hunting' >Agriculture, Forestry, Fishing and Hunting</OPTION>
<OPTION VALUE='Mining' >Mining</OPTION>
<OPTION VALUE='Utilities' >Utilities</OPTION>
<OPTION VALUE='Construction' >Construction</OPTION>
<OPTION VALUE='Manufacturing' >Manufacturing</OPTION>
<OPTION VALUE='Wholesale Trade' >Wholesale Trade</OPTION>
<OPTION VALUE='Retail Trade' >Retail Trade</OPTION>
<OPTION VALUE='Transportation and Warehousing' >Transportation and Warehousing</OPTION>
<OPTION VALUE='Information' >Information</OPTION>
<OPTION VALUE='Finance and Insurance' >Finance and Insurance</OPTION>
<OPTION VALUE='Real Estate and Rental and Leasing' >Real Estate and Rental and Leasing</OPTION>
<OPTION VALUE='Professional and Technical Services' >Professional and Technical Services</OPTION>
<OPTION VALUE='Management of Companies and Enterprises' >Management of Companies and Enterprises</OPTION>
<OPTION VALUE='Administrative and Waste Services' >Administrative and Waste Services</OPTION>
<OPTION VALUE='Educational Services' >Educational Services</OPTION>
<OPTION VALUE='Health Care and Social Assistance' >Health Care and Social Assistance</OPTION>
<OPTION VALUE='Arts, Entertainment and Recreation' >Arts, Entertainment and Recreation</OPTION>
<OPTION VALUE='Accommodation and Food Services' >Accommodation and Food Services</OPTION>
<OPTION VALUE='Other Services (Except Public Administration)' >Other Services (Except Public Administration)</OPTION>
<OPTION VALUE='Public Administration' >Public Administration</OPTION>
</SELECT>
.............................................
function SetSelectedIndex(dropdownlist,sVal)
{
var a = document.getElementById(dropdownlist);
for(i=0;i<a.length;i++)
{
if(a.options[i].value == sVal)
{
a.selectedIndex = i;
}
}
}
.................................
<select name="states">
<%
for(int i=0;i<sL.size();i++)
{
if (selState.equals(sL.get(ac)))
{ %>
<option value="<%=(String)sL.get(i)%>"SELECTED><%=(String)sL.get(i)%>
<% }
else
{ %>
<option value="<%=sL.get(i)%>"><%=sL.get(ac)%>
<% } %>
</option>
<%} %>
</select>
<%if(viewObject.getNaicsCode().equals("")){%>
<option value="" selected="selected"> </option>
<%} else {%>
<option value="<%=viewObject.getNaicsCode()%>" selected="selected"><%=viewObject.getNaicsCode()%></option>
<%}%>
<OPTION VALUE='Agriculture, Forestry, Fishing and Hunting' >Agriculture, Forestry, Fishing and Hunting</OPTION>
<OPTION VALUE='Mining' >Mining</OPTION>
<OPTION VALUE='Utilities' >Utilities</OPTION>
<OPTION VALUE='Construction' >Construction</OPTION>
<OPTION VALUE='Manufacturing' >Manufacturing</OPTION>
<OPTION VALUE='Wholesale Trade' >Wholesale Trade</OPTION>
<OPTION VALUE='Retail Trade' >Retail Trade</OPTION>
<OPTION VALUE='Transportation and Warehousing' >Transportation and Warehousing</OPTION>
<OPTION VALUE='Information' >Information</OPTION>
<OPTION VALUE='Finance and Insurance' >Finance and Insurance</OPTION>
<OPTION VALUE='Real Estate and Rental and Leasing' >Real Estate and Rental and Leasing</OPTION>
<OPTION VALUE='Professional and Technical Services' >Professional and Technical Services</OPTION>
<OPTION VALUE='Management of Companies and Enterprises' >Management of Companies and Enterprises</OPTION>
<OPTION VALUE='Administrative and Waste Services' >Administrative and Waste Services</OPTION>
<OPTION VALUE='Educational Services' >Educational Services</OPTION>
<OPTION VALUE='Health Care and Social Assistance' >Health Care and Social Assistance</OPTION>
<OPTION VALUE='Arts, Entertainment and Recreation' >Arts, Entertainment and Recreation</OPTION>
<OPTION VALUE='Accommodation and Food Services' >Accommodation and Food Services</OPTION>
<OPTION VALUE='Other Services (Except Public Administration)' >Other Services (Except Public Administration)</OPTION>
<OPTION VALUE='Public Administration' >Public Administration</OPTION>
</SELECT>
.............................................
function SetSelectedIndex(dropdownlist,sVal)
{
var a = document.getElementById(dropdownlist);
for(i=0;i<a.length;i++)
{
if(a.options[i].value == sVal)
{
a.selectedIndex = i;
}
}
}
.................................
<select name="states">
<%
for(int i=0;i<sL.size();i++)
{
if (selState.equals(sL.get(ac)))
{ %>
<option value="<%=(String)sL.get(i)%>"SELECTED><%=(String)sL.get(i)%>
<% }
else
{ %>
<option value="<%=sL.get(i)%>"><%=sL.get(ac)%>
<% } %>
</option>
<%} %>
</select>
You deliver informative information related to java Script coding. This post is very helpful for programmers. I learn more through this post. Moreover, If you want to get services of garage door repairing and installation then you should hire garage door repair Kennesaw as your desire requirements.
ReplyDelete