Issue with Javascript


Issue with Javascript

Hi I created arrays in javascript in following way

var myimages= new Array(); myimages[0]="iphone_pushups.png"; myimages[1]= "cricket.png"; myimages[2]= "july.png"; myimages[3]= "matrix.png"; myimages[4]= "rhymes.png";

var Questions= new Array(); Questions[0]= "

How many iphone styles are present in the image?

"; Questions[1]= "

What is the name of the game present in the image?

"; Questions[2]= "

What is the colour of the stars in the image?

"; Questions[3]= "

How many blocks of same size are present?

"; Questions[4]= "

What is the language of rhymes found from image?


var answers= new Array(); answers[0]="Five"; answers[1]="Cricket"; answers[2]="White"; answers[3]="Four"; answers[4]="Telugu";

var options= new Array(); options[0]="One"; options[1]="Three"; options[2]="Five"; options[3]="None";
options[4]="Golf"; options[5]="Cricket"; options[6]="Chess"; options[7]="Carroms"; options[8]="White"; options[9]="red"; options[10]="blue"; options[11]="orange"; options[12]="Two"; options[13]="Three"; options[14]="Four"; options[15]="Five"; options[16]="English"; options[17]="Kannada"; options[18]="Telugu"; options[19]="Hindi";

For these arrays i have to write the code using javascript that for the question we should get 4 options and for the each question we should find the correct answer. it would be displayed as multiple choice question and if we click on one option it would show whether the answer is correct or not. I need code of this in javascript.If you don't mine get me reply as as quickly as possible.

View Answers


Related Tutorials/Questions & Answers:
Issue with Javascript
Issue with Javascript  Hi I created arrays in javascript in following way var myimages= new Array(); myimages[0]="iphone_pushups.png... using javascript that for the question we should get 4 options and for the each
javascript issue
javascript issue  hi, i have an xml file which have country name and there browsers name list so now in 1st dropdown list country name should print and when we select country corresponding to that in 2nd dropdown list browsers
JavaScript  clone JavaScript
javascript  javascript code to dynamically add table on button click.../javascript/javascriptexamples/javascript-add-row-dynamically.shtml
Javascript  How validations are done using javascript ,with example? and interview questions on javASCRIPT
should use JavaScript? Thanks   Hi, JavaScript is scripting language that runs on browser. You have to embed JavaScript in HTML page. Please see JavaScript tutorial. Thanks
JavaScript  how to get full path of a file type in javascript
javascript  Hi deepak, how to write form validation on javascript
javascript  write a program to display implement about browsers using javascript
javaScript  How to open a browser window that cannot be resized? (HTML + Javascript
javascript  i have just learned javascript... can you tell me what kind of applications can be made by javascript?? thank you
javascript  how to set the request or session attribute in javascript head part of jsp page
javascript  Hi sir, This is sinduri, i want to learn javascript, so plz can u help to learn
javascript  hi sir, if i want to learn javascript. what concepts i want to know
JAVASCRIPT  I have one textbox and I want to validate that it must start with number(1-0). can anyone tell me a javascript for that ? thanks in advance
Javascript   Javascript to check Numeric entry in checkbox.....   Hi Please find the following code for numeric entry validation in javascript function validateBox(){ var data=document.myForm.someText.value
javascript  hi, I was actually working on to calculate the number of days between two dates of yyyy-mm-dd format using javascript, and when i click on button then number of days should be display in textbox
javaScript  . Print a table like below in JAVASCRIPT 5 x 1 = 5 5 x 2 = 10 ΓΆβ?¬Β¦ΓΆβ?¬Β¦ΓΆβ?¬Β¦. 5 x 20 = 100
this format xxx-xxx-xxxx, i want the code in javascript. as a function.   Javascript Phone Number Validation <html> <script> function..." method="post" onsubmit="javascript:return validate();"> Phone Number:<
Javascript  Dear Sir, Thank You a lot for your continuos support.Again i am in need of your help. What is the javascript code to disable a link,once... javascript or css Please help me.Urgent Regards Debasis   Hello Friend
Javascript  <html> <head> <script type="text/javascript"> function validateForm() { var sname=document.getElementById('spocname'); var scontact=document.getElementById('spoccontact'); if(sname.value.length
javascript  how to create random question using javascript?   <html> <script> function displayQuestions() { document.getElementById("text").value=" "; var Questions = new Array(20
issue on jcombobox
issue on jcombobox  i have JTextfield and JComboBox. there are several values in combobox.when i select a value from combobox how to make textfiled as a combobox.only few values in the combobox need this functionality. need
jdialogbox issue.
jdialogbox issue.  i have one button.when clicked on it has to show a dialog box.but even click on it several times it has to open dialog box only once. if it is already not opened atleast once,then only it has to open dialog
javascript  Hi deepak, sample example on javascript form validation   <html> <script> function checkName(text) { if(isNaN(text)){ return 1; } else{ alert("Please enter a valid name. The only charachters
to go back for another search. Now issue is -- when I put some input data
jquery issue plese help
jquery issue plese help  Im am trying to Change the background color... }); // end ready JavaScript & jQuery TheMissingManual... JavaScript & jQuery: The Missing Manual, by David McFarland. Published
Dropdown and label issue
Dropdown and label issue  This is Venkat from Hyderabad,India.Working as a JavaDeveloper herein. Could you please read the code n give your valuable suggestions.. Technologies I used are Java, J2ee, jsp,Servlets, Javascript
multiple dropdown issue
valuable suggestions.. Technologies I used are Java, J2ee, jsp,Servlets, Javascript... to the calling javascript function. here let us assume that if user selects 4
Decimal Format Issue Java
Decimal Format Issue Java  Decimal Format Issue Java
ModuleNotFoundError: No module named 'issue'
ModuleNotFoundError: No module named 'issue'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'issue' How to remove the ModuleNotFoundError: No module named 'issue'