element.className = 'right'; element.className = 'wrong';
.right{ background: url(right.png) no-repeat left; padding-left: 40px; } .wrong{ background: url(wrong.png) no-repeat left; padding-left: 40px; }