title: jquery enable submit button on input value change
body: <p>This is my part of my html</p>
  
  <pre><code>&lt;input type="text" name="age" /&gt;
  &lt;input type="text" name="poscode" /&gt;
  &lt;input type="submit" name="submit" value="Next &gt;&gt;" disabled="disabled"/&gt;
  </code></pre>
  
  <p>This is my script</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function(){
  var enable = false;
  if($("input[name='age']").val != "")
  enable = true;
  if($("input[name='poscode']").val != "")
  enable = true;
  if(enable == true) $("input[name='submit']").attr('disabled', '');
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>This is not working, any idea what i'm doing wrong?</p>
  
  <p>After user filled up two input age &amp; poscode, the submit button should become active 
  ( disabled at start)</p>