Question
Can someone help me fix this code please. The script is not running. Thanks! TEST check Here! select here grad undergrad Courses Grades a b
Can someone help me fix this code please. The script is not running. Thanks!
TEST
document.getElementById("Status").style.visibility = "hidden"; document.getElementById("Button").style.visibility = "hidden";
function Status(value) { if(value == 'b') { document.getElementById("Courses").style.visibility = "visible"; document.getElementById("Button").style.visibility = "visible"; document.getElementById("sub1").innerHTML = "Grad subject 1"; document.getElementById("sub2").innerHTML = "Grad subject 2";
if(value == 'b') { document.getElementById("Courses").style.visibility = "visible"; document.getElementById("Button").style.visibility = "visible"; document.getElementById("sub1").innerHTML = "UnderGrad subject 1"; document.getElementById("sub2").innerHTML = "UnderGrad subject 2"; }
if(value == 'a') { document.getElementById("Courses").style.visibility = "hidden"; document.getElementById("Button").style.visibility = "hidden"; } }
function run() { var a=document.getElementById("Grade1").value; var b=document.getElementById("Grade2").value; var average; if(document.getElementById("Status").value=='b') { average=(Number(a)+Number(b)/2 ;
if(average>3.2) {
document.getElementById("result").innerHTML = "Conratulations, You are eligible to apply"; } else { document.getElementById("result").innerHTML = "Your Sorry, You did not meet the criteria"; } } if(document.getElementById("Status").value=='c') { if((Number(a)+Number(b)/2 >3.7) { document.getElementById("result").innerHTML = "Conratulations, You are eligible to apply"; } else { document.getElementById("result").innerHTML = "Sorry, You did not meet the criteria"; } } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started