HTML 是長這樣子
<input type="checkbox" name="10" id="10" value="1"> <label for="s_10i1" style="color: red;">讀取</label>
在 chrome 的 console 輸入
$('input[type=checkbox]:checked + label').css('color', 'red')
就可以看到 ” 讀取” 變成紅色的
HTML 是長這樣子
<input type="checkbox" name="10" id="10" value="1"> <label for="s_10i1" style="color: red;">讀取</label>
在 chrome 的 console 輸入
$('input[type=checkbox]:checked + label').css('color', 'red')
就可以看到 ” 讀取” 變成紅色的
留言