title: Jquery flickering when I add classes to my divs
body: <p>I'm having trouble with Jquery and flickering. My problem is this, when I convert my id's to classes the below syntax isn't working. The problem is, it flickers. It flickers approx. 7-8 times. What am I doing wrong? Any help would be appreciated. Thanks everyone.</p>
  
  <p>I would also like to add when I change my classes to ID's everything works great but only one item on my webpage has the ability of hide>click>slideToggle (which isn't what I want because I'm listing more than one item per page for sale). This syntax is below as well, it's very similar to the syntax that does not work but I've decided to include it anyway. </p>
  
  <p>(Not working syntax. Has classes)</p>
  
  <pre><code>&lt;?php
  echo "&lt;div class=\"fmv2\"&gt;Your Name&lt;/div&gt;";
  ?&gt;
  
  &lt;div class="p122"&gt;
  
  &lt;?php
  
   echo form_open("submit/submit_info");
  
   echo form_label('Your Name:','name');
  
     $data = array(
      "name" =&gt; 'name',
   "id" =&gt; 'box_width',
   "value" =&gt; set_value('name')
     );
  
     echo form_input($data);
  
     echo '&lt;br&gt;';
  
     echo form_submit('Submit','Submit');
  
     echo form_close(); 
  
  ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My Jquery (Not working, has classes)</p>
  
  <pre><code>// JavaScript Document
  $(document).ready(function(){
  
    $(".p122").hide(function(){
  
      $(".fmv2").click(function() {
  
        $(".p122").slideToggle(300);
  
    });
  
   });
  
  });
  </code></pre>
  
  <p>Working syntax (Has Ids)</p>
  
  <pre><code>&lt;?php
  echo "&lt;div id=\"fmv2\"&gt;Your Name&lt;/div&gt;";
  ?&gt;
  
  &lt;div id="p122"&gt;
  
  &lt;?php
  
   echo form_open("submit/submit_info");
  
   echo form_label('Your Name:','name');
  
     $data = array(
      "name" =&gt; 'name',
   "id" =&gt; 'box_width',
   "value" =&gt; set_value('name')
     );
  
     echo form_input($data);
  
     echo '&lt;br&gt;';
  
     echo form_submit('Submit','Submit');
  
     echo form_close(); 
  
  ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My Jquery. (Working, has Ids)</p>
  
  <pre><code>// JavaScript Document
  $(document).ready(function(){
  
    $("#p122").hide(function(){
  
      $("#fmv2").click(function() {
  
        $("#p122").slideToggle(300);
  
    });
  
   });
  
  });
  </code></pre>