Home Answers Viewqa JavaScriptQuestions JAVASCRIPT FOR ONLINE QUIZ

 
 


vanan
JAVASCRIPT FOR ONLINE QUIZ
0 Answer(s)      a year and 3 months ago
Posted in : JavaScript Questions

i m creating a set of online questionnaire consist of 12 questions with choice of answers from 0-6.i've done creating a html codes.but have to calculate percentage based on total scores.my problem is i want to use get element by id function to read the score.if any questions is missed out there must be an alert box require user to answer all questions before proceeding to calculate score.below is a sample of questionnaire which i need to modify to include get element id function.I REALLY NEED YOUR HELP IN THIS.PLS

<form method="GET" action="post.html">`print("code sample");`

    Choose one from this group<br>
    RED <input type = "radio" name = "rad1" value = "0" >
    BLUE <input type = "radio" name = "rad1" value = "1" >
    GREEN  <input type = "radio" name = "rad1" value = "2" >
    YELLOW <input type = "radio" name = "rad1" value = "3">
    BROWN <input type = "radio" name = "rad1" value = "4">
    <br>
    And one from this group<br>
    PINK<input type = "radio" name = "rad2" value = "0" >
    PURPLE<input type = "radio" name = "rad2" value = "1" >
    GREY<input type = "radio" name = "rad2" value = "2" >
    BLACK<input type = "radio" name = "rad2" value = "3" >
    WHITE <input type = "radio" name = "rad2" value = "4">
    <br><br>
    <input type = "button" value = "Calculate Score" onclick ="calc()">
    </form>

    <script type = "text/javascript">

    var numOfGroups = 2;  // the number of radio button groups - here 2

    function calc() {
    var score = 0;
    for (var j=1; j<=numOfGroups; j++) {
    var f = document["myform"]["rad"+j];
    for (var i=0; i<f.length; i++) {
    if (f[i].checked) {
    score += Number(f[i].value/72 *100));
    }
    }
    }

    alert ("You scored "  + score);

    }
    </script>
View Answers









Related Pages:
JAVASCRIPT FOR ONLINE QUIZ
JAVASCRIPT FOR ONLINE QUIZ  i m creating a set of online questionnaire consist of 12 questions with choice of answers from 0-6.i've done creating... = "text/javascript"> var numOfGroups = 2; // the number of radio button
online quiz
online quiz  Define a Question class which stores a multiple choice...) level. Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions. Define the add method of the Quiz class to add a question
online quiz
online quiz  Define a Question class which stores a multiple choice...) level. Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions. Define the add method of the Quiz class to add a question
online quiz
online quiz  Define a Question class which stores a multiple choice...) level. Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions. Define the add method of the Quiz class to add a question
online quiz
online quiz  Define a Question class which stores a multiple choice...) level. Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions. Define the add method of the Quiz class to add a question
online quiz
online quiz  Define a Question class which stores a multiple choice...) level. Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions. Define the add method of the Quiz class to add a question
online quiz
online quiz  Define a Question class which stores a multiple choice...) level. Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions. Define the add method of the Quiz class to add a question
Online quiz mini project
Online quiz mini project  Sir i need a online quiz program coding using java servlet, jdbc odbc connection with ms. access. If possible send that source code to me. Thank you
Online Quiz Application in JSP
Online Quiz Application in JSP  ... are going to implement of Online quiz application using of JSP. Step 1: Create... quiz question and answer form using with JSP or JDBC database.  Here
Failed to run Online Quiz Application in JSP - JSP-Interview Questions
Failed to run Online Quiz Application in JSP   Hi, I have been following your following link to run the online quiz application, but I failed... your question. Thanks  Hi, I cannot run your online quiz
Need Help in creating online quiz application using JSP - JSP-Servlet
Need Help in creating online quiz application using JSP  Hi, i am creating online Quiz application using JSP and MySQl ,Apache 6 in Netbeans IDE. i... of database mySql-->select * from quiz
quiz
question has a complexity (difficulty) level. Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions. Define the add method of the Quiz class to add a question to a quiz. Define the giveQuiz method
How to Create Quiz Application using iPhone
How to Create Quiz Application using iPhone  Hi, I am learning iphone application Programming Language. my question is that how to create a quiz application using iPhone. Please provide online reference to study and example
online quiz program coding using jsp, jdbc odbc connection with ms. access.. Thank you.
online quiz program coding using jsp, jdbc odbc connection with ms. access.. Thank you.  please provide online quiz program coding using jsp, jdbc...: http://www.roseindia.net/jsp/online-quiz-application-jsp.shtml
online examination
: http://www.roseindia.net/jsp/online-quiz-application-jsp.shtml...online examination  coding for multiple choice question in jsp   We are providing you a simple application. Create table test
Online Test System Project
://www.roseindia.net/jsp/online-quiz-application-jsp.shtml...Online Test System Project  I want a full ready-made project on online test system in jsp. i am not using servlet but only jsp.And backend database
online test system
/online-quiz-application-jsp.shtml http://www.roseindia.net/answers/viewqa/JSP...online test system  Hi, I am creating a project for online test system.There should be a timer,on pressing next button it will retrieve a next
Should we go for javascript or applets for online exam project using java
Should we go for javascript or applets for online exam project using java  Hi, I am new to java and i am working on online examination project.As soon as the candidate login successfully a window pop up should appear
Online Test System Project
/online-quiz-application-jsp.shtml   Many many thanks for the reply...Online Test System Project  I want a full ready-made project on online test system in jsp. i am not using servlet but only jsp.And backend database
online shopping portal
online shopping portal   Blockquote Scenario: Online Shopping Portal XYZ.com wants to create an online shopping portal for managing its... their dream of having an online shopping portal? Steps to be followed 1. Create
online shoopping portal
online shoopping portal  XYZ.com wants to create an online shopping... their dream of having an online shopping portal? Steps to be followed Create... the client side validations using JavaScript. Create the tables using MySQL
Online Shopping Portal for xyz.com
Online Shopping Portal for xyz.com  XYZ.com wants to create an online shopping portal for managing its registered customers and their shopping... to realize their dream of having an online shopping portal? Steps to be followed 1
Online Shopping Portal for xyz.com
Online Shopping Portal for xyz.com  XYZ.com wants to create an online shopping portal for managing its registered customers and their shopping... to realize their dream of having an online shopping portal? Steps to be followed 1
Online Shopping Portal
Online Shopping Portal  XYZ.com wants to create an online shopping... their dream of having an online shopping portal? Steps to be followed Create... the client side validations using JavaScript. Create the tables using MySQL
Online Shopping Portal
Online Shopping Portal  XYZ.com wants to create an online shopping... help XYZ.com to realize their dream of having an online shopping portal? Steps.../XHTML and CSS. 2.Implement the client side validations using JavaScript
online test application in java
the following link: http://www.roseindia.net/jsp/online-quiz-application-jsp.shtml...online test application in java  Can questions come in html file (test.html) if we link test.jsp with test.html   We have taken
online java traaining - Java Beginners
online java traaining  HI, Can u tell me ! that where i can study online training for java study?? Where i get home work or task or daily lab..., struts1, struts2, jsf, iphone, flex, javascript, ajax, html, xml, Hibernate, JDBC
identification quiz - Java Beginners
identification quiz  what is the html java code for a identification quiz? plz help me..  Hi Friend, Please clarify your question. Thanks
PHP Training online in India
with PHP and JavaScript You should know how web works In this PHP online...PHP Training online in India We are providing PHP Training online in India using desktop sharing softwares. PHP Training online is very effective way
Ask Ajax Questions Online
Ask Ajax Questions Online       AJAX refers to Asynchronous JavaScript and XML, an amalgamation of JavaScript and XML used for creating interactive web
Ask Dojo Questions Online
Ask Dojo Questions Online       Dojo is an open source modular JavaScript library used in writing JavaScript applications. It includes AJAX support
Quiz Extreme
Quiz Extreme       Use Quiz Extreme quiz software to make your own quizzes on any subject, using a variety of question types. Create any kind of quiz you can imagine
iPhone Quiz App Tutorial
iPhone Quiz App Tutorial In this simple iPhone quiz application tutorial, we are going to learn how to create simple quiz in iphone. Creating a simple quiz in iPhone is really easy..Just follow the given steps to create the quiz
Rose India Online/Onsite HTML Training Course
Rose India Online/Onsite HTML Training Course     Welcome to Rose India Online/Onsite HTML Training Course. As you... Online as well/or Onsite HTML Training Course that can be taken by anyone without
sir plz send the project on quiz system code
sir plz send the project on quiz system code  sir plz send the client server based project in core java database in my sql
JavaScript
JavaScript  clone JavaScript
Java Programming: Chapter 2 Quiz
Quiz Questions For Chapter 2 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 2 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: Briefly explain what
Java Programming: Chapter 7 Quiz
Quiz Questions For Chapter 7 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 7 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: What
Java Programming: Chapter 9 Quiz
Quiz Questions For Chapter 9 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 9 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: What does it mean
Java Programming, Chapter 12 Quiz
Quiz Questions For Chapter 12 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 12 of this on-line Java textbook. You should... the quiz questions can be found here. Question 1: What is meant
Java Programming: Chapter 1 Quiz
Quiz Questions For Chapter 1 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 1 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: One of the components
Java Programming: Chapter 4 Quiz
Quiz Questions For Chapter 4 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 4 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: A "black box"
Java Programming: Chapter 6 Quiz
Quiz Questions For Chapter 6 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 6 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: Programs written
Java Programming: Chapter 10 Quiz
Quiz Questions For Chapter 10 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 10 of this on-line Java textbook. You should... the quiz questions can be found here. Question 1: In Java, input
javascript timer countdown
javascript timer countdown  How to disable/enable the javascript...:#FFFFFF } <!-- JavaScript file named: countDown.js --> var mins var secs...;script type="text/javascript" src="countDown.js"></script> <
javascript
javascript  javascript code to dynamically add table on button click.../javascript/javascriptexamples/javascript-add-row-dynamically.shtml http://www.roseindia.net/javascript/javascript-add-row-to-table.shtml http://www.roseindia.net
Javascript
Javascript  How validations are done using javascript ,with example? and interview questions on javASCRIPT
Java Programming: Chapter 3 Quiz
Quiz Questions For Chapter 3 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 3 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: Explain briefly what
Java Programming: Chapter 5 Quiz
Quiz Questions For Chapter 5 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 5 of this on-line Java textbook. You should be able... the quiz questions can be found here. Question 1: Object-oriented
Java Programming, Chapter 11 Quiz
Quiz Questions For Chapter 11 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 11 of this on-line Java textbook. You should... the quiz questions can be found here. Question 1: Explain what

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.