loop for -javascript -


what problem of loop?

    for(i=0; i<18; i++)     {         $("'#various'+i+1").fancybox({             });         } 

it supposed various1, various2, etc

thanks

$("#various"+(i+1)).fancybox({ 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -