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')

就可以看到 ” 讀取” 變成紅色的

Related posts 相關文章
思科CISCO遭受網路攻擊然後被竊取資料
More...
挖礦程式利用 WebAssembly 埋在網頁裡挑避檢測
More...
該更新你的 Google Chrome 瀏覽器了,2022 新年有 37 安全更新
More...
不要在瀏覽器上自動儲存自己的密碼,已有人被駭
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。