2016-05-26 12 views
0
<c:forEach var="bu" items="${brand.businessUnits}"> 
    <td class="dataText"> 
     <c:if test="${bu.marketCode == masterMarket}"> 
      <c:out value="${param.id}"></c:out> 
      <form:select disabled='${disableDisplayType}' path="categories[${bu.marketCode}].categoryDisplayTypeId" cssClass="selectLrg"> 
       <form:option value="" /> 
       <form:options items="${categoryDisplayTypes}" itemLabel="name" itemValue="id" /> 
      </form:select> 
      <c:out value="${param.id}"></c:out> 
      <form:errors path="categories[${bu.marketCode}].categoryDisplayTypeId" cssClass="error" /> 
      <c:if test="${disableDisplayType}"> 
       <form:hidden path="categories[${bu.marketCode}].categoryDisplayTypeId" /> 
      </c:if> 
     </c:if> 
    </td> 
</c:forEach> 

ここでは、選択したドロップダウンリストに基づいてcategoryDisplayTypeを取得します。 。<form:select>の選択されたオプションを得る方法?

答えて

0

$( '#formNameフォームを選択し、[名前= "パス名"]オプション:選択')のval();

関連する問題