<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>筛选功能</title>
<link rel="stylesheet" href="themes/sortbox.css" type="text/css"></link>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="js/sortbox.js"></script>
<script type="text/javascript">
$(function(){
var sortbox = $("#sortbox").sortbox({
setting:{
multiple : false
},
option:[
{
title:"银行1",
name:"name1",
value:[{"广发银行":"value1"},{"中信银行":"value2"}]
},{
title:"用途2",
name:"name2",
value:[{"酒店/商旅卡":"value3"},{"卡通卡面卡":"value4"}]
}
],
select : [{name1:"value1"},{name1:"value2"},{name2:"value4"}],
onSelect : function(a,b,c)
{
console.log(a);
}
});
});
</script>
</head>
<body>
<div id="sortbox" class="sortbox">
</div>
</div>
</body>
</html>