jqtags / jq-switch
此包已被废弃,不再维护。未建议替代包。
精美的开关/复选框按钮
0.0.0
2015-06-08 07:41 UTC
Requires
- jqgeeks/jqtag: >=0.0.0
This package is auto-updated.
Last update: 2017-08-12 07:56:26 UTC
README
示例代码
<jq-switch id="switch1" value=true on=Yes off=No label="Auto Search" ></jq-switch>
使用jQuery可以获取/设置值
$("#switch1").val(true);
var x = $("#switch1").val();
$("#switch1").on("change",function(e){
console.log("callback : switch has toggled")
})
安装
composer require jqtags/jq-switch
bower install jqtags-jq-switch