title: Hide data using Jquery
body: <p>I have five button which contain different data </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(".Datanewpost").click(function() {
    $(".data).toggle();
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="data"&gt;
    &lt;div id="Datanewpost"&gt;
      Data 1
      &lt;div class="data"&gt; Helol&lt;/div&gt;
    &lt;/diV&gt;
    &lt;div id="Datanewpost"&gt;
      data 2
      &lt;div class="data"&gt; Helol&lt;/div&gt;
    &lt;/div&gt;
    &lt;div id="Datanewpost"&gt;
      data 3
      &lt;div class="data"&gt; Helol&lt;/div&gt;
    &lt;/div&gt;
    &lt;div id="Datanewpost"&gt;
      data 5
      &lt;div class="data"&gt; Helol&lt;/div&gt;
    &lt;/div&gt;
    &lt;div id="Datanewpost"&gt;
      data 5
      &lt;div class="data"&gt; Helol&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Unfortunately this does not work what do I need to do to get what I want? I know I can do it by assigning individual id to each div but that looks bad coding</p>
  
  <p>NOTE: I want to be able to hide or show  individually  , </p>