this is a js control depending on jquery,using this control ,you do not need to create many filter input control any more. in another word ,this is an all-in-one filter control.
这是一个js控件,使用这个控件后,你不再需要在页面上创建很多过滤条件的输入框,换句话说,这是一个ALL-IN-ONE 的过滤控件。
-
包含js 和css
<script src="../lib/jquery/dist/jquery.js"></script> <script src="../js/jquery.timer.js"></script> <script src="../js/select3.js"></script>2.定义一个filter
开始时间:2016-1-1
结束时间
用户
备注
</select>
3.初始化和获取值
$("#filter").select3();
//{id,filter,content,selected,format}
// $.select3InitValue("#filter", [{ "id": "hello", "filter": "hello2", "content": "xx" }])
//{ id,filter,content }
var selectValues = $.select3Value("#filter");