您好,我有一個問題要問您,我將刪除一個輸入類型按鈕的屬性(隱藏),您能幫我嗎,這是我的腳本坦克為你提供幫助<input type="button" onclick="myfunction()" value="Test"><hr><button id="ici" hidden="">lol</button><script>function myfunction() { document.getElementById("ici").removeAttribute("hidden");}</script>
1 回答

catspeake
TA貢獻1111條經驗 獲得超0個贊
什么不起作用?
function myfunction() {
document.getElementById("ici").removeAttribute("hidden");
}
<input type="button" onclick="myfunction()" value="Test">
<hr>
<button id="ici" hidden=''>lol</button>
- 1 回答
- 0 關注
- 150 瀏覽
添加回答
舉報
0/150
提交
取消