스위치 전환을 만들었습니다. 둘 이상의 스위치를 만들면 정확히 작동하지 않습니다.하나 이상의 스위치 단추를 구현하는 방법은 무엇입니까?
HTML을 여기
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch"
checked>
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch"
checked>
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
</div>
JS 바이올린 : http://jsfiddle.net/dgj7s5sk/ 어떤 일이 나를 도와.