add function to check button color

This commit is contained in:
Tyler Bean 2022-01-26 18:07:14 -06:00
parent e1710e0739
commit 7fb47c28db
1 changed files with 4 additions and 0 deletions

View File

@ -1714,6 +1714,10 @@ function setButtonColor(buttonName) {
function clearButtonColor(buttonName) {
document.getElementById(buttonName).style.background = '';
};
function checkButtonColor(buttonName) {
var color = document.getElementById(buttonName).style.background;
return color;
};
function selectCheckbox(box) {
box.filter("A")[0].classList.add("checked");
box.filter("INPUT")[0].checked = true;