how can I insert an element from a array of strings into a paragraph tag and then increment it later to show the next element in the array?
ex:
something along the lines of that
the only problems I have is scope , and the aforementioned displaying the text depending on what L_allLinks[x] is.
ex:
Code
<INPUT type="button" value="Submit" name="button1" onClick="strcmp(textbox.text,L_Answers[x])"> // function to compare //strings will return true or false
<FORM>
<INPUT TYPE="text"NAME="list"
SIZE="40"
MAXLENGTH="35">
</FORM> // textbox
<script>
var L_allLinks = new Array (
's1' , "TExt here this is L_allLinks[0]",
's2' ,"This is the next element need to output this to the page somehow");
for(x = 0;x <20 ;){
<p>L_allLinks[x]</p> // this is pseudo code for what I want to do
if(button1.val == false)
alert("You got it wrong");
else
alert("Goodjob!\n");
x++;} // increment what the paragraph displays
</script>something along the lines of that
the only problems I have is scope , and the aforementioned displaying the text depending on what L_allLinks[x] is.
