var e = ""; $("#format input[type=checkbox]").each(function () { if (this.checked) { e = e + this.name + ","; } });
$("body").css("background-color", "#" + hex);