Change class when click image using jquery
<p>I want to change the class content when i click the image. </p>

<pre><code>&lt;div class="myclass"&gt;
Content
&lt;/div&gt;
&lt;div class="myclass"&gt;
Content
&lt;/div&gt;
&lt;div class="myclass"&gt;
Content
&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;img src="image1.jpg" /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img src="image2.jpg" /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img src="image3.jpg" /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img src="image4.jpg" /&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img src="image5.jpg" /&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>Here i want to go to the 1 st content if i click the 1st image and increment like that. Is this possible ?</p>
