title: Change Remote Url Dynamically jquery validation
body: <p>I want to change remote url dynamically, when i fill the input, work normally, but when i click "load.php" button, its still load the "check.php". help me.</p>
  
  <p>this is my code</p>
  
  <pre><code>&lt;script type="text/javascript"  src="https://code.jquery.com/jquery-3.1.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"  src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.15.0/jquery.validate.js"&gt;&lt;/script&gt;
  
  &lt;form id="validate"&gt;
        &lt;input id="testremote" name="testremote"  type="text" data-rule-remote="check.php" required data-msg-required="Please Fill" &gt;
          &lt;br/&gt;&lt;br/&gt;
        &lt;input class="submit" type="submit" value="Submit"&gt;
  &lt;/form&gt;
  &lt;button onclick="changeurl('load.php');"&gt;Change URL(load.php)&lt;/button&gt;
  &lt;button onclick="changeurl('test.php');"&gt;Change URL(test.php)&lt;/button&gt;
  &lt;script&gt;
  $(function(){
  $("#validate").validate();
  });
  
  function changeurl(a){
  var x = $("#testremote");
  x.attr("data-rule-remote",a);
  }
  &lt;/script&gt;
  </code></pre>