jquery 拖动选择性别,实时显示结果
XML/HTML Code
- <div class="container">
- <div class="row">
- <div class="span1 offset4 female"> <img src='demos/female.png' class='gender' gender='female' /> </div>
- <div class="span2">
- <select id='switch-me'>
- <option value='female'>female</option>
- <option value='' selected="selected"></option>
- <option value='male'>male</option>
- </select>
- </div>
- <div class="span1"> <img src='demos/male.png' class='gender' gender='male' /> </div>
- </div>
- <div class='row'>
- <div class='span12' id="console"> </div>
- </div>
- </div>
原文地址:http://www.freejs.net/article_biaodan_218.html