title: PHP Dropdown filter to show one or two image input field
body: <p>I create form for &quot;Proof of document&quot; uploader . Where I have ID card front and back side and bill image upload. I Create Dropdown when I click bill that will show one image uploader and when I click on ID it will show 2 image uploader for front and back side image . Can you tell where is my error ?</p>
  <pre><code>&lt;select&gt;
  &lt;option&gt;ID&lt;/option&gt;
  &lt;option&gt;Bill&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>When I click on &quot;ID&quot; result I need 2 image uploader</p>
  <pre><code>&lt;input type=&quot;file&quot; class=&quot;custom-file-input&quot; name=&quot;front-side&quot;&gt;
  &lt;input type=&quot;file&quot; class=&quot;custom-file-input&quot; name=&quot;back-side&quot;&gt;
  </code></pre>
  <p>When I click on &quot;Bill&quot; result only I need 1 image uploader</p>
  <pre><code>&lt;input type=&quot;file&quot; class=&quot;custom-file-input&quot; name=&quot;user-bill&quot;&gt;
   
  
  
  jQuery(document).ready(function() {
      jQuery(&quot;#carm3&quot;).change(function() {
          if (jQuery(this).val() === 'other'){ 
              jQuery('input[name=user-bill]').show();
                      } else {
              jQuery('input[name=front-side]').hide();
  jQuery('input[name=back-side]').hide(); 
          }
      });
  });
  </code></pre>