Well, I know that with some jQuery actions, we can add a lot of classes to a particular div:
L
Use attr to directly set the class attribute to the specific value you want:
$('#container div.cleanstate').attr('class','cleanstate');