how to use variables while using css classes?
I want to use variable names while accessing css classes.
Here I am giving example about my query
function ab(temp){
var spc = "horizontal"+temp;
$("#spc .cssClass").css("left","20px");
}
variable temp will change dynamically. as per temp we need to acces horzontal1 or horizontal2 divs.
im new to jquery. please suggest me