Hi Sree Sindhu,
TA.value = TA.value + "lottery[" + i + "] = " + lottery[i] + " "
'+' ll just append the next value, it may be a variable or string. like in above case, consider,
ta.value = 'hi'
lottery[0] = '1'
lottery[1] = '2'
if loop 'i' value is '0', then that statement ll be,
ta.value = 'hi + lottery[0] = 1' , then ta.value string has string 'hi lottery[0]=1'
if loop 'i' value is '1', then that statement ll be,
ta.value = 'hi + lottery[1] = 2' , then ta.value string has string 'hi lottery[1]=2'
Jan 31, 2011