<select class="form-control col-sm-3" id="levelThree" data-placeholder="请选择分类...">
<th:block th:unless="${null == thirdLevelCategories}">
<th:block th:each="c : ${thirdLevelCategories}">
<option th:value="${c.categoryId}" th:text="${c.categoryName}"
th:selected="${null !=thirdLevelCategoryId and thirdLevelCategoryId==c.categoryId} ?true:false">
>
</option>
</th:block>
</th:block>
</select>
<div class="form-group">
<label class="control-label">上架状态: </label>
<input name="goodsSellStatus" type="radio"id="goodsSellStatusTrue" checked=true th:checked="${null==goods||(null !=goods and null !=goods.goodsSellStatus and goods.goodsSellStatus==0)} ?true:false" value="0"/> 上架 <input name="goodsSellStatus" type="radio" id="goodsSellStatusFalse" value="1" th:checked="${null !=goods and null !=goods.goodsSellStatus and goods.goodsSellStatus==1} ?true:false"/> 下架 </div>
var goodsCategoryId = $(’#levelThree option:selected’).val();
var goodsSellStatus = $(“input[name=‘goodsSellStatus’]:checked”).val();