課程
/前端開發(fā)
/jQuery
/jQuery基礎(chǔ) (一)—樣式篇
? $('option:selected').removeAttr('selected')?
2017-01-08
源自:jQuery基礎(chǔ) (一)—樣式篇 2-13
正在回答
選擇所有已經(jīng)選中的option,取消其option標(biāo)簽的選中狀態(tài)有啥問題嗎?
舉報(bào)
jQuery初入開啟樣式修煉,體驗(yàn)萬能的jQuery樣式集搭建網(wǎng)站布局
5 回答$('input:checked').removeAttr('checked')為什么會(huì)消除option的selected狀態(tài)?
2 回答.attr()與.removeAttr()
3 回答3-1 .attr()與.removeAttr()
1 回答edge和ie11用removeAttr和removeprop都沒沒效果
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-01-08
選擇所有已經(jīng)選中的option,取消其option標(biāo)簽的選中狀態(tài)有啥問題嗎?