Posted by: sirus_me October 10, 2011
javascript array
Login in to Rate this Post:     0       ?        
Dolmaji, first of all you are declaring the array in very difficult way.


Dolmaji, hope this would help :-).


var arraylist= new array();
array[0]=ab
array[1]=cd
array[2]=ef
array[3]=gh
.
.
.
.
array[8]=wx
array[9]= yz


for(var i =0; i <array.length;i++)
{
if(array[i].toString()=="ij" && array[i].toString()=="kl")
{
document.write(array[9].toString());

#will give you result of yz

}

If i helped you, can i get some chang ;-)?

Peace

Sirus_Me
 
Last edited: 10-Oct-11 08:18 PM
Last edited: 10-Oct-11 08:19 PM
Read Full Discussion Thread for this article