jquery选择器
2015-11-30 22:11 VinpleZhang 阅读(147) 评论(0) 编辑 收藏 举报http://www.cnblogs.com/onlys/articles/jQuery.html
<script type="text/javascript">
$(document).ready(function(){
$("input[@type=radio][name=sex][@value=1]").attr("checked",true);
});
</script>
您的性别:
<input type="radio" name="sex" value="1" <s:if test="user.sex==1">checked</s:if>/>男
<input type="radio" name="sex" value="0" <s:if test="user.sex==0">checked</s:if>/>女