title: How to use a variable from an input in a jquery validation witht his value being updated when typing?
body: <p>I am trying to validate a hostname/ip in jquery by sending an AJAX request. The ip should come from the input field I validate.</p>
  
  <pre><code>rules: {
      ip: {
          required: true,
          remote: {
              url: 'http://' + ip + ':8888/api/foo',
              type: "POST",
              cache: false,
              contentType: 'application/json',
              dataType: "json",
  </code></pre>
  
  <p>How can I pass the input variable to the rule? Is it possible at all?</p>
  
  <p>Edit: This seems important but I need the value to be updated when typing it</p>