Is it possible to create a for loop which will go through the loop and assign a particular code to different css classes?
My css classes are defined in template.css file (there are 100 of classes with similar name), so obviuosly it should look something like the code below, which btw does nothin'?
for(i=1;i<101;i++) {
$(document).ready(function () {
$('.inner' + i).hide();
$('.outside' + i).hover(
function () {
$('.inner' + i, this).stop(true, true).slideDown(200);
},
function () {
$('.inner' + i, this).stop(true, true).slideUp(200);
});
});
}
And my classe are btw: outsude1, outside2, outside3... inner1, inner2, inner3...