title: Hide button with jQuery after submit Account
body: <p>I try to hide one <strong>submit button</strong> when <strong><em>#email</em></strong> and customer <strong>#first/lastname</strong> have value (is successfully saved) #submitAccount to be hidden.</p>
  
  <p>Working code:</p>
  
  <pre><code>                {literal}
              &lt;script&gt;
                  $(document).ready(function () {
                              $("#submitGuestAccount").click(function () {
                               if($("#email").val().trim().length&gt;0 &amp;&amp; $("#customer_firstname").val().trim().length&gt;0 &amp;&amp; $("#customer_lastname").val().trim().length&gt;0 )   {
                                      $('#new_account_form p.submit').hide();
                                  }
                              });
                  });
              &lt;/script&gt;
              {/literal}
              &lt;p class="submit"&gt;
                  &lt;input type="submit" class="exclusive button" name="submitAccount" id="submitAccount" value="{l s='Save'}" /&gt;
              &lt;/p&gt;
  </code></pre>
  
  <p>But how to add filter - When page is load and</p>
  
  <pre><code>  if($("#email").val().trim().length&gt;0 &amp;&amp; $("#customer_firstname").val().trim().length&gt;0 &amp;&amp; $("#customer_lastname").val().trim().length&gt;0 ) 
  </code></pre>
  
  <p>Again button to be hidden. Now when i refresh page button shows again?</p>