JavaScript
if ((valid1 && valid2 && valid3 & valid4 && valid5 && valid6 && valid7 && valid8)==1)
{
// include an image in the specified ID.
document.formElem.next1.disabled=false;
} else {
document.formElem.next1.disabled=true;
}
HTML
<li id="checkimg">Personal</li>
CSS
background:transparent url(../images/checked.png) no-repeat top left;
If the JavaScript condition is met as true, I want to apply the above style to the element with id="checkimg"
. What code do I need to add inside the if statement?