<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/jquery.richUI.min.js"></script>
<script type="text/javascript" src="js/jquery.browser.min.js"></script>
<script type="text/javascript">
$(function() {
//单选
/*
* selected: 默认选中值
*/
$("input[name='sex']").richradio();
$("input[name='sex2']").richradio();
$("input[name='sex3']").richradio({selected:"2"});
//复选
/*
* allBtn:是否出现全选按钮,默认 false
* checkAll: 全选,默认false
* selected: 默认选中值
*/
$("input[name='xingqu']").richcheckbox();
$("input[name='xingqu2']").richcheckbox({allBtn:true, checkAll:true});
$("input[name='xingqu3']").richcheckbox({allBtn:true});
$("input[name='xingqu4']").richcheckbox({allBtn:true, selected:"2,4"});
//下拉框
/**
* type: single(单选,默认),multi(多选)
* selected: 默认选中值
* width: 宽度
* placeholder: 提示文字
*
**/
$("#mySelect").richselect();
$("#mySelect2").richselect({selected:"3"});
$("#mySelect3").richselect({type:"multi", placeholder:"hello"});
$("#mySelect4").richselect({type:"multi", selected:"4,5", width:"300px"});
});
</script>
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
