title: Jquery. how we show a same div for multiple times step by step not once when my condition is true
body: <p>i have a div with two input fields, i want to show this div again when both fields are filled using jquery.
  this same div with both fileds show for next data. this process continuous until condition not false. </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>$(document).ready(function () {
      $('input').blur(function () {
          var input1 = $("#med").val();
          var input1 = $("#med").val();
          var input2 = $("#pon").val();
  
          if (input1 != '' &amp;&amp; input2 != '') {
  
              $("medicine_fields").show();
          }
      });
  
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="btn-group form-inline" id="medicine_fields"&gt;
      &lt;label&gt;Medicine&lt;/label&gt;
      &lt;input type="text" list="medicines" id="med" name="medicines" class="form-control" /&gt;
      &lt;datalist id="medicines"&gt;
          &lt;option value=""&gt;--select or write--&lt;/option&gt;
          &lt;option value="abc"&gt;abc&lt;/option&gt;
          &lt;option value="abc"&gt;dec&lt;/option&gt;
      &lt;/datalist&gt;
      &lt;label style="margin-left:20px"&gt;Potency&lt;/label&gt;
      &lt;input type="text" list="potency" id="pon" class="form-control" /&gt;
      &lt;datalist id="potency"&gt;
          &lt;option value=""&gt;--select or write--&lt;/option&gt;
          &lt;option value="abc"&gt;abc&lt;/option&gt;
  
      &lt;/datalist&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>