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 JavascriptIssue 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 issuejavascript 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
Advertisements
javascriptjavascript
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
JavascriptJavascript How validations are done using
javascript ,with example? and interview questions on
javASCRIPT 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
JavaScriptJavaScript how to get full path of a file type in
javascript javascriptjavascript Hi deepak,
how to write form validation on
javascript javascriptjavascript write a program to display implement about browsers using
javascript javaScriptjavaScript How to open a browser window that cannot be resized? (HTML +
Javascript javascriptjavascript i have just learned
javascript...
can you tell me what kind of applications can be made by
javascript??
thank you
javascriptjavascript how to set the request or session attribute in
javascript head part of jsp page
javascriptjavascript Hi sir,
This is sinduri, i want to learn
javascript, so plz can u help me.how to learn
javascriptjavascript hi sir,
if i want to learn
javascript. what concepts i want to know
JAVASCRIPTJAVASCRIPT 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 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
javascriptjavascript 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
javaScriptjavaScript . Print a table like below in
JAVASCRIPT
5 x 1 = 5
5 x 2 = 10
���.
5 x 20 = 100
javascriptjavascript passing
javascript values to jsp
Hi Friend,
Try the following code:ADS_TO_REPLACE_1
form.jsp:
<html>
<script>...
Javascript value In JSP">
<%
String st=request.getParameter("msg");
if(st
Javascript 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:<
JavascriptJavascript 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
issue on jcomboboxissue 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
JTABLE Issue to go back for another search.
Now
issue is -- when I put some input data
JavascriptJavascript <html>
<head>
<script type="text/
javascript">
function validateForm() {
var sname=document.getElementById('spocname');
var scontact=document.getElementById('spoccontact');
if(sname.value.length
javascriptjavascript how to create random question using
javascript?
<html>
<script>
function displayQuestions() {
document.getElementById("text").value=" ";
var Questions = new Array(20
javascriptjavascript 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
jquery issue plese helpjquery
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 issueDropdown 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
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'
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'
semantic issue xcode 4.2semantic
issue xcode 4.2 I have updated xcode 4.0 to 4.2 .. but once i open any application in this new version of xcode ..it throws lots of semantic
issue. Can anyone please explain why it occurs and how to resolve
Resultset Issue in SQLResultset
Issue in SQL when i call rs.next() in my code it is returning false, though im having valid query to execute and fetch a row from database.how can i resolve this
issue.
My code is:
SELECT JOBDESCRIPTION,CATEGORY
Reloading issue in jspReloading
issue in jsp I wrote one jsp page with one submit button. If we click on button it will execute business logic, but I want to stop reloading page if user refreshed the link. how we do
Issue in JSF and Richfaces.Issue in JSF and Richfaces. Hi,I am with a
issue in JSF and Richfaces.I have one add user page.In which i have fields Firstname,LastName,SecretID(which has Validate/suggest as links beside tat) ,Email address,city,state,country
Login issue using ServletLogin
issue using Servlet Hi all, I need a code for login using servlet where in I want to check and validate user name and password from database also I want to check candidate's class (for ex. FY, SY, TY) if candidate's class
Read Issue itextRead
Issue itext Hello,
I m using itext to read data from pdf file..
Right now i m reading page wise data,but i want to extract data on each line
In variable whole page data there...
so i want to read data line by line
so
Read Issue itextRead
Issue itext Hello,
I m using itext to read data from pdf file..
Right now i m reading page wise data,but i want to extract data on each line
In variable whole page data there...
so i want to read data line by line
so
maven subversion issue maven subversion
issue m doing work on maven and subversion
i have created a maven project now i want to point it to my repository(created by svn tortoise)
i read that for this i have to change in pom.xml file from this site
Initializing Integer Variable issue?Initializing Integer Variable
issue? My program is supposed to take a phrase like you'd see on a TV commercial, for example: "Call 1-800-GETLOAN now to..." then take that phrase and convert it to its actual phone number. My
javascript doubtjavascript doubt How to retrieving the values from Database by using
javascript javascript validationjavascript validation validation of comparing dropdownlist and textbox in
javascript