title: Show just one button when i check if at least one input is completed without show another button of the same class
body: <p>I want create function when i put anything in inputs (i've 6), will show one button search and when fields are empty, the same button will be hidden.
  Now, my problem is when i write, i get two button that i've declare in file .js and .jsp.(SEARCH and PROCEED).</p>
  <p>I want a help just for this twice expressions:</p>
  <pre><code>&lt;div class=&quot;button-row&quot;&gt;
              &lt;button class=&quot;btn btn-black&quot; type=&quot;submit&quot; name=&quot;search&quot;&gt;&lt;spring:theme code=&quot;multilogin.search.button&quot;/&gt;&lt;/button&gt;
          &lt;/div&gt;
  </code></pre>
  <p>AND</p>
  <pre><code>&lt;div class=&quot;button-row&quot;&gt;
          &lt;button class=&quot;btn btn-black&quot; type=&quot;button&quot; name=&quot;multiLogin&quot;&gt;&lt;spring:theme code=&quot;multilogin.button.login&quot;/&gt;&lt;/button&gt;
      &lt;/div&gt;
  </code></pre>
  <p>You can find the code here --&gt; <a href="https://jsfiddle.net/fm1y5c8v/1/" rel="nofollow noreferrer">https://jsfiddle.net/fm1y5c8v/1/</a></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>inputField: function(){
         // $("#multiLogin-search input").on('input', function(){
                  var showHideButtonSearch = () =&gt; {
                      let hasValue = false;
   $("#multiLogin-search input.text-input").each(function(){
                        if ($(this).val()) {
                          hasValue = true;
                        }
                      });
                      if (hasValue === false) {
                        $(".button-row").hide();
                      } else {
                        $(".button-row").show();
                      }
                  }
                  // Check input values on key up
    $("#multiLogin-search input.text-input").keyup(function() {
                     showHideButtonSearch();
                   });
  
                   //Hide button search on page load
                     showHideButtonSearch();
        // });
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;body&gt; 
  
  
  &lt;form id="multiLogin-search" class="d-none"&gt;
              &lt;div class="column"&gt;
                  &lt;div class="text-input-wrap"&gt;
       &lt;p&gt; Customer number &lt;p&gt;
       &lt;p&gt; &lt;input class="text-input" type="text" name="customerCode"  &gt; &lt;p&gt;
                  &lt;/div&gt;
                  &lt;div class="text-input-wrap"&gt;
                      &lt;p&gt; Country &lt;p&gt;
                      &lt;p&gt; &lt;input class="text-input" type="text" name="country"  &gt; &lt;p&gt;
                      
                  &lt;/div&gt;
                  &lt;div class="text-input-wrap"&gt;
                      &lt;p&gt; Postal Code &lt;p&gt;
                      
                      &lt;p&gt; &lt;input class="text-input" type="text" name="postalCode"  &gt; &lt;p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="column"&gt;
                  &lt;div class="text-input-wrap"&gt;
                      &lt;p&gt; Customer Name &lt;p&gt;
                      &lt;p&gt; &lt;input class="text-input" type="text" name="customerName" &gt; &lt;p&gt;
                  &lt;/div&gt;
                  &lt;div class="text-input-wrap"&gt;
                      &lt;p&gt; City &lt;p&gt;
                      &lt;p&gt; &lt;input class="text-input" type="text" name="city" &gt; &lt;p&gt;
                  &lt;/div&gt;
                  &lt;div class="text-input-wrap"&gt;
                      &lt;p&gt; Address &lt;p&gt;
                      &lt;p&gt; &lt;input class="text-input" type="text" name="address"&gt;&lt;p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              
  
  &lt;div class="button-row"&gt;
    &lt;button class="btn btn-black" type="submit" name="search"&gt;&lt;spring:theme code="multilogin.search.button"/&gt;&lt;/button&gt;
              &lt;/div&gt;
          &lt;/form&gt;
          
      
          &lt;div class="button-row"&gt;
      &lt;button class="btn btn-black" type="button" name="multilogin"&gt;&lt;spring:theme code="multilogin.search.button"/&gt;&lt;/button&gt;
              &lt;/div&gt;
   
          
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>thnx,</p>