Add class to images in JQuery click function
<p>In click function all images,</p>

<pre><code>&lt;script type="text/javascript"&gt;
  $(".blurall").click(function(){
  $("[img='.jpg']").addClass("opacity");
  });
&lt;/script&gt;
</code></pre>

<p>My css</p>

<pre><code>.opacity{
    opacity:0.5;
}
</code></pre>

<p>Not working any one help me!</p>
