single and double quote is bugging me.I've been trying to set id automatically to an element.But i don't know what should be the right form.say like....
Code:
var m=["img1.jpg","img2.jpg","img3.jpg"]
for(i=0;i<5;i++){
<img src="'+m[i]+'" id="+i+"
is it ok?i mean can i do this stuff?where can i learn about the correct use of single and double quote?
it also troubles me passing arguments to function.
please help!!!!