Jquery validation
Jquery validation
I am trying to implement something similar to the sample shown here:
http://docs.jquery.com/Plugins/Validation/Methods/remote
- $("#myform").validate({
- rules: {
- email: {
- required: true,
- email: true,
- remote: {
- url: "check-email.php",
- type: "post",
- data: {
- username: function() {
- return $("#username").val();
- }
- }
- }
- }
- }
- });
However, I am trying to get the data to go across as a json object. No matter what I try it gets sent across as a standard name value pair. EX: username=usernamevalue Which would be fine, but for some reason my web service ignores it. I am using page method in an asp.net page if that makes any difference.