I have a class that has an image
<a class="proceed-btn right" onclick="validateall();" style="cursor: pointer;">Proceed To Next Step >>></a>
WHICH THIS CSS
.proceed-btn {
background:url("images/proceed-btn.gif") no-repeat scroll 0 0 transparent;
height:35px;
width:275px;
}
then on the same page I have these input fields and links
<input type="text" id="name" name="name" value="" class="field left">
<input type="text" id="company" name="company" value="" class="field left">
<input type="text" id="email" name="email" value="" class="field left">
<a onclick="setindustry('3');" style="cursor: pointer;" class="industry_links highlight">Retail</a>
<a onclick="setsystems('5');" style="cursor: pointer;" class="count_links highlight">5</a>
I want the top button to have a .new_button class when all of the following are executed
.new_button { background-position: 0 -35px; text-decoration: none; color: #fff; }
there is at least one letter for each of the text fields, and the industry_links and count_links classes have at least one class with a highlight class
Basically I want to change the color of the button when all five are completed
Sorry to be so confused
source
share