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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -