Question
Instruction: Please add customized CSS for the following JavaScript Form. The Form is in embedded in the following code: Code: Student Status: Please select your
Instruction: Please add customized CSS for the following JavaScript Form. The Form is in embedded in the following code:
Code:
Course
| Grade Earned
|
---|---|
| |
| |
| |
|
document.getElementById("courseTable").style.visibility = "hidden";
document.getElementById("evaluateButton").style.visibility = "hidden";
function StudentStatusChage(value) {
if(value == 'a')
{
document.getElementById("courseTable").style.visibility = "hidden";
document.getElementById("evaluateButton").style.visibility = "hidden";
}
if(value == 'b')
{
document.getElementById("courseTable").style.visibility = "visible";
document.getElementById("evaluateButton").style.visibility = "visible";
document.getElementById("course1").innerHTML = "CSE 3203 Mobile System Overview";
document.getElementById("course2").innerHTML = "IT 4213 Mobile Web Development";
document.getElementById("course3").innerHTML = " IT 4723 IT Policy and Law";
document.getElementById("course4").innerHTML = "IT 4153 Advanced Database";
}
if(value == 'c')
{
document.getElementById("courseTable").style.visibility = "visible";
document.getElementById("evaluateButton").style.visibility = "visible";
document.getElementById("course1").innerHTML = "IT 7113 Data Visualization";
document.getElementById("course2").innerHTML = "IT 6713 Business Inteligence";
document.getElementById("course3").innerHTML = "IT 6203 IT Design Studio";
document.getElementById("course4").innerHTML = "IT 6413 IT Service Delivery";
}
}
function evalute()
{
var a=document.getElementById("course1Grade").value;
var b=document.getElementById("course2Grade").value;
var c=document.getElementById("course3Grade").value;
var d=document.getElementById("course4Grade").value;
var grade,averagemarks;
if(document.getElementById("StudentStatusSelect").value=='b')
{
averagemarks=(Number(a)+Number(b)+Number(c)+Number(d))/4 ;
if(averagemarks>3.2)
{
document.getElementById("msg").innerHTML = "Congratulations, You are eligible to apply for a student assistant position!!! Please click the link to Application.";
document.getElementById("demo").innerHTML = result;
}
else
{
document.getElementById("msg").innerHTML = "Thank you for your interest. Unfortunately, you did not meet the eligibility requirements.";
}
}
if(document.getElementById("StudentStatusSelect").value=='c')
{
if((Number(a)+Number(b)+Number(c)+Number(d))/4 >3.7)
{
document.getElementById("msg").innerHTML = "Congratulations, You are eligible to apply for a student assistant position!!! Please click the link to Application";
}
else
{
document.getElementById("msg").innerHTML = "Thank you for your interest. Unfortunately, you did not meet the eligibility requirements";
}
}
}
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