radio得值

$('input[name="ylqxjylcldnbModel.jylb"]:checked').val();
 
<input type="radio" name="spjdcyModel.bcjrszqy" value="乡村" <c:if test="${spjdcyModel.bcjrszqy=='乡村' }">checked="checked"</c:if>/>乡村
 
 
S标签
<s:if test="#request.spjdcyModel.actionType=='add'">
<input type="radio" name="spjdcyModel.bcjrszqy" value="城市" checked="checked"/>城市
</s:if>
<s:else>
<input type="radio" name="spjdcyModel.bcjrszqy" value="城市" <c:if test="${spjdcyModel.bcjrszqy=='城市' }">checked="checked"</c:if>/>城市
</s:else>
posted @ 2019-04-12 22:05  那些年的代码  阅读(238)  评论(0编辑  收藏  举报