Really simple question. I have the following code, and would like to consolidate it down as much as possible. Can't get it to work though.. tried using commas etc. Is there a way to call more than one ID in the GetElementByID method? New to Javascript : /
$("#set50").live("click", function() {
document.getElementById("statusBox50").setAttribute("class", "statusBoxSelected");
document.getElementById("statusBox25").setAttribute("class", "statusBox");
document.getElementById("statusBox75").setAttribute("class", "statusBox");
document.getElementById("statusBox100").setAttribute("class", "statusBox");
$(".statusbar").animate({
width: '115px'
}, 500);
});