title: How do i toggleClass on img in Gridview?
body: <p>Im trying to enlarge pictures in a ASP gridview with jquery like this.</p>
  
  <pre><code> &lt;style&gt;
    .enlargeImg{
     width:600px;
     height:600px;
   }
  
    &lt;/style&gt; 
    &lt;script src="../Scripts/jquery-1.10.2.js"&gt;&lt;/script&gt;
  
     &lt;script type="text/javascript"&gt;
         $(document).ready(function () {
             $('.pageContainer').on('click','img', function () {
             $(this).toggleClass('.enlargeImg');
             });
  
          });
     &lt;/script&gt;
  </code></pre>
  
  <p>I hit the picture alright(can call an alert), but i can not get the toggleclass to work. Is it possible to do so?</p>