I have a problem with my for loop.
This is the code:
for(i = 1; i <= 30; i++){
var opacity = $("#h"+i).css("opacity");
if(opacity < 1){
$("#h"+i).click(function() {
$("#h"+i).css({
opacity: 1
});
});
}
}
When I put a number like
$("#h1")
instead of
$("#h"+i)
It works but only for that object but then I don't have a use for for loop.