在写后台时,会需要实现“一组checkbox”的功能,例如:
html:
<p>
<label for="zoneID">区服选择</label>
<input type="text" name="zoneID" id="zoneID" readonly>
<ul class="myList" id="zoneIDList" style="display: none;">
<li><input type="checkbox" id="allServer">全选</