I have a input tag before which I have a span tag.
<li>
<span class="class1 class2" style="background-position: 0pt 0pt;"></span>
<input id="in1" class="inputclass" type="checkbox" name="in1">
<label for="in1">text here</label>
</li>
<li>
<span class="class1 class2" style="background-position: 0pt 0pt;"></span>
<input id="in2" class="inputclass" type="checkbox" name="in2">
<label for="in2">text2 here</label>
</li>
I need to remove the class2 from the 2nd span tag above when checkbox i.e in1 is checked. How can I do that?
Also there are many input and span tags. please help.
Thanks