jsp代码:
复制代码 代码如下:
<form id="search">
<select id="jobSelect" name="jobSelect">
<s:if test='jobSelect == null || jobSelect == ""'>
<option selected="selected" value="-1">--依职类筛选--</option>
</s:if>
<s:else>
<option value="-1">--依职类筛选--</option>
</s:else>
<s:iterator value="jobCat" status="s">
<s:if test="jobSelect == catKey">
<option value="<s:property value="catKey" />" selected="selected">
<s:propertyvalue="catCnName" />
</option>
</s:if>
<s:else>
<option value="<s:property value="catKey" />">
<s:propertyvalue="catCnName" />
</option>
</s:else>
</s:iterator>
</select> <br />
<select id="areaSelect" name="areaSelect">
<s:if test='areaSelect == null || areaSelect == ""'>
<option selected="selected" value="-1">--依地区筛选--</option>
</s:if>
<s:else>
<option value="-1">--依地区筛选--</option>
</s:else>
<s:iterator value="workAreaCat" status="s">
<s:if test="areaSelect == areaCat">
<option value="<s:property value="areaCat" />" selected="selected">
<s:propertyvalue="catCnName" />
</option>
</s:if>
<s:else>
<option value="<s:property value="areaCat" />">
<s:propertyvalue="catCnName" />
</option>
</s:else>
</s:iterator>
</select>
<input type="button" value="查询" />
<span mce_ id="requiredParam"></span>
</form>
js代码:
复制代码 代码如下:
<mce:script type="text/javascript"><></mce:script