使用複選框如何隱藏和顯示範圍。 如果複選框被選中的跨度應該是dispaly,如果取消選中採用了棱角分明如何使用角度來更改複選框來隱藏和顯示div?
這裏是一個撥弄它不應該顯示:http://jsfiddle.net/d9uc1dxc/2/
<div class="flw vreq2">
<label>Voting require2</label>
<div class="oneline">
<div class="onoffswitches">
<input type="checkbox" name="onoffswitch" class="onoffswitch-
checkbox"id="myonoffswitch7"/>
<label class="onoffswitch-label" for="myonoffswitch7">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
<span class="teamsize">
<label>Team Size</label><input type="text" />
</span>
</div>
</div>