Hi, I'm sort of new to javascript and I'm having a problem
this is my code
for(i=1;i<=68;i++){
content+="<p onclick='myf(i)'>Some text</p>";
}
What I'm trying to do is that when you click on this text it would send the index of it to function 'myf'. But in the code as I have it above it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.