“JavaScript dinonaktifkan” Kode Jawaban

JavaScript Nonaktifkan tombol

//disable the button
document.getElementById(BUTTON_ID).disabled = true;
//reable the button
document.getElementById(BUTTON_ID).removeAttribute('disabled');
Friendly Hawk

JavaScript dinonaktifkan

// Makes the button disabled

document.getElementById("myButtonId").setAttribute("disabled", ""); 

// Removes disabled attribute

document.getElementById("myButtonId").removeAttribute("disabled");
ayaan

JavaScript GetElementById Disable

//javascript getelementbyid disable
//Enable a button
document.getElementById("Button").disabled=false;

//Disable a button
document.getElementById("Button").disabled=true;
Jaskaran

Jawaban yang mirip dengan “JavaScript dinonaktifkan”

Pertanyaan yang mirip dengan “JavaScript dinonaktifkan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya