Dear All,
I'm building an Question/Answer Application in which I generate the Questions and Answers from Oracle database.
I'd like to validate through javascript that the user should answer each question.
First, I iterate through the questions.
Then, inside each question, I check if the user has chosen an answer (If the radio button is checked). If not alert a message.
I get the answer...
Search Result
Collapse
6 results in 0.0028 seconds.
Keywords
Members
Tags
-
Problem when to iterate through Radio Buttons
-
Create variable for each iteration of a for loop
Hello, I am using a for loop to iterate through an array and need to assign each iteration to a new variable, such as
Code:arr = ['bread', 'milk', 'cheese'] for i in arr: print i
Code:var1 = 'bread' var2 = 'milk' var3 = 'cheese'
-
How to iterate through all the elements of the n-size int array in C#?
hi,
What I want to do, is to print/generate n-size int array like this:
Code:int [3] array; 0 0 0 0 0 1 0 0 2 ... 9 9 9
Code:int [10] array; 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 2 ... 9 9 9 9 9 9 9 9 9 9
-
Confusion from executing multiple loops:
I have an input in the form (as given below) in a text file. I have to loop through the contents in between two '$-$-$-$' characters. This is done by splitting at '$-$-$-$'. To get the Output as shown in the format below I could achieve by splitting at newline and at '-' character and looping through. Problem is I cannot get the names iteratively like 1.lab, 2.lab, 3.lab for content b/w $-$-$-$. Couldn't apply the loops properly. Confused with the... -
Loops and checking for string starts
I've started with Python recently, reading a book.
Unfortunately, I've come through an error I do now know how to resolve.
If you could please help me, it would be greatly appreciated.
Code:from random import randrange #Simulates a fight monsters = [ 'Goblin', 'Orc', 'Human', 'Soldier', 'Fighter', 'Night Elf' ] rnd
-
String itteration
Hello all..so i have this working bit of code..i made it to big and complex i think..and i was wondering if anyone had any insight on how i could compact it a little better..
let me explain . first i take the filename from argv[1].then i replace the .asm with a .lis. this then makes the filename source.lis.asm. so I erase the .asm extension to finally get source.lis. but my code seems a little ridiculous.haha . but any help would be...