I'm using the get element by class function $(".classname")
but it doesn't work when the class name has a space, plus sign, slash in it (I can't change the class names)
var summaryLEVEL5 = $(".LEVEL 5");
var summaryLEVEL5Total = 0;
for (i=0; i < summaryLEVEL5.length; i++){
summaryLEVEL5Total = summaryLEVEL5Total + parseInt(summaryLEVEL5[i].innerHTML);
}
var columnLEVEL5CapGroup = $(".LEVEL 5CapGroup");
columnLEVEL5CapGroup[columnLEVEL5CapGroup.length - 1].innerHTML = summaryLEVEL5Total;
the function above is what i am using. it seems to work for all the othe classnames but not ones with a space like between'level' and '5'
how can I escape space,plsu sign, forward slash?