How do I add a class without using setAttribute using the code below?


Code JavaScript:
var drop_selected = document.getElementsByName('search_category');
	for (var x in drop_selected) {
		drop_selected[x].onclick = function(){
			for (var c=0; c<drop_selected.length; c++) { 
				drop_selected[c].setAttribute("class", ""); 
			}
			this.setAttribute("class", "drop_selected");
			return false;
		}
	}