左右开关式CheckBox

XML/HTML Code
- <div class="example">
- <input id="the_checkbox_id" type="checkbox" name="nobody_cares">
- <input type="textarea" class="this_shows_when_switch_is_off" placeholder="Switch is OFF">
- <input type="textarea" class="this_shows_when_switch_is_on" placeholder="Switch is ON">
- <script>
- var $ = jQuery;
- $(function(){
- canecode_switch("#the_checkbox_id",".this_shows_when_switch_is_off", ".this_shows_when_switch_is_on");
- });
- </script>
- </div>
原文地址:http://www.freejs.net/article_biaodan_827.html