`
everlxq
  • 浏览: 108782 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

前端获取数据默认选中

 
阅读更多
				
					<s:action  name="JdjWsxyd_findType" namespace="/"></s:action>
									<table style="BORDER-COLLAPSE: collapse" 
										cellSpacing="0" cellPadding="5" width="920" border="0" align="center">
										<tr>
											<td align="left" class="zz">
												<select name="typeId" class="SmallSelect"
													style="width: 150px" id="typeId">
													<option value="">
														请选择企业类别
													</option>
													<c:forEach items="${requestScope.jdjtypes}" var="jdjtype">
													<option  <c:if test="${requestScope.jdjtypeId eq jdjtype}">selected</c:if>  value="${jdjtype}">${jdjtype}</option>
													</c:forEach>
													
													
												</select>
												级别:
												<select name="grade" class="SmallSelect" style="width: 90px"
													id="grade">
													<option value="">
														请选择级别
													</option>
													<option value="A" <c:if test="${requestScope.jdjgrade eq 'A'}">selected</c:if>>
														A
													</option>
													<option value="B" <c:if test="${requestScope.jdjgrade eq 'B'}">selected</c:if>>
														B
													</option>
													<option value="C" <c:if test="${requestScope.jdjgrade eq 'C'}">selected</c:if>>
														C
													</option>
													<option value="D" <c:if test="${requestScope.jdjgrade eq 'D'}">selected</c:if>>
														D
													</option>
												</select>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics