<input class="sex" type="text" th:field="*{sex}" list="listItem" placeholder="请选择性别">
<datalist id="listItem">
<option>男</option>
<option>女</option>
</datalist> //datalist的id要与list属性名称一致
<input id="wlmsinput" name="maktMaktx" list="wlmslist" value="${model.maktMaktx}"/>
<datalist id="wlmslist">
<c:forEach var="wl" items="${wuliaocp}">
<option value="${wl.maktx }">${wl.maktx }</option>
</c:forEach>
</datalist>