MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / disable

Function disable

assets/js/ternarysearch.js:134–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133// function to disable the button
134function disable()
135{
136 // To disable the button "Generate New Array"
137 document.getElementById("Button1").disabled = true;
138 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
139
140 // To disable the button "Ternary Search"
141 document.getElementById("Button2").disabled = true;
142 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
143}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected