I saw similar code here but the solution provided is more complicated than what I'm looking for. If someone could simplify that, that would be great.
$(document).ready(function() {
$("#togglecbox").click(function() {
$(".cbox").toggleClass("cbox2");
$(".wrapper2").toggleClass("wrapper3");
$(".container>.control-bar").toggleClass("contentfloat");
});
});