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

Function disable

assets/js/binarysearch.js:119–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118// function to disable the button
119function disable()
120{
121 // To disable the button "Generate New Array"
122 document.getElementById("Button1").disabled = true;
123 document.getElementById("Button1").style.backgroundColor = "#d8b6ff";
124
125 // To disable the button "Binary Search"
126 document.getElementById("Button2").disabled = true;
127 document.getElementById("Button2").style.backgroundColor = "#d8b6ff";
128}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected