RemoteValidation
Remote method prevents submit name/value pair being submitted #1559
by IwanVosloo
HTML
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/additional-methods.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mockjax/1.6.2/jquery.mockjax.min.js"></script>
<h1>Remote validation bug</h1>
<p>
You will have to use the browser dev tools/network tab to see exactly what the form submits.
</p>
<p>
To reproduce, type something into the input, then click on the button. Note that the button you clicked on was not submitted.
</p>
<form >
<input name="text_input" remote="/validateRemote" type="text">
<input name="submit_button" type="submit" value="Click me"/>
</form>
JavaScript
$(function(){
$.mockjax({
url : "/validateRemote",
responseText : "true"
});
$('form').validate();
})