Hey Guys in the below code every time the if statement is executed no matter what the condition is.
function addRow(tableID) {
var table = document.
in your if statement:
'=' should be '==' for starters
then:
(document.getElementById('select_degree').style.visibility == 'hidden')
&&
(document.getElementById('select_degree')!=null)
you check a property before checking if it is null, if you switch them around the program will check null first, and if it is, drop to else, and not check the second condition.
in this case, even if it is null, it is going to access .style.visibility