I am sliding elements in and out of view but need to check if an element is visible so I know which function to call.
//I need to check if the element #bonuses is visible at the time of clicking.
//If it is I will not run the below function. How is this done?
//The element is controlled by the slider in jquery ui
//I am thinking that maybe it is more about position than display
//but I cannot find it in the documentation.
//if (document.getElementById("bonuses").style.display = "none")
//did not work