title: Method only called OnLoad Jquery
body: <p>I am trying to make a simple user input text and in order to avoid issues, I want to make the submit button unclickable if there is no text entered. This is what I have so far:</p>
  
  <pre><code>$(function() {
    if ($("#formSearchUserId").val() == "") {
      $('#userIdBtn').prop('disabled', true);
    } else {
      $('#userIdBtn').prop('disabled', false);
    }
  });
  </code></pre>
  
  <p>This works onload because since there is no text by default in the input, it will disable the button. However, when I type in values into the input, the button stays disabled. </p>
  
  <p>Any help would be greatly appreciated.</p>