Jquery removing class of span object without passing the Id
<p>I have a input tag before which I have a span tag.</p>

<pre><code>&lt;li&gt;
&lt;span class="class1 class2" style="background-position: 0pt 0pt;"&gt;&lt;/span&gt;
&lt;input id="in1" class="inputclass" type="checkbox" name="in1"&gt;
&lt;label for="in1"&gt;text here&lt;/label&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;span class="class1 class2" style="background-position: 0pt 0pt;"&gt;&lt;/span&gt; 
&lt;input id="in2" class="inputclass" type="checkbox" name="in2"&gt;
&lt;label for="in2"&gt;text2 here&lt;/label&gt;
&lt;/li&gt;
</code></pre>

<p>I need to remove the class2 from the 2nd span tag above when checkbox i.e in1 is checked.
How can I do that?</p>

<p>Also there are many input and span tags. 
please help.</p>

<p>Thanks </p>
