Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 809103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:40:22+00:00 2026-05-15T00:40:22+00:00

I use jquery validation plugin and the remote attribute works with emailId but not

  • 0

I use jquery validation plugin and the remote attribute works with emailId but not with mobileNo?

var validator = $("#addform").validate({
    rules: {
    Name: "required",
    MobileNo: {
             required: true,
           minlength: 10, remote: '<%=Url.Action("getClientMobNo", "Clients") %>'
                },
                Address: "required"
              },
   messages: {
       Name: "please provide a client name",
       MobileNo: {
          required: "Please provide a mobile phone no",
          rangelength: jQuery.format("Enter at least {0} characters"),
          remote: jQuery.format("This MobileNo is already in use")
        },
        Address: "please provide client address"
       },

A null value is passed to my controller action.. Any suggestion…

    public JsonResult getClientMobNo(string mobno)
    {
        JsonResult result = new JsonResult();
        string status = clirep.getClientMobNo(Convert.ToInt64(mobno));
        if (status == "Mobile No already exists")
        {
            result.Data = false;
        }
        else
        {
            result.Data = true;
        }
        return result;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:40:22+00:00Added an answer on May 15, 2026 at 12:40 am

    The variable names aren’t matching up. JQuery is passing a parameter of MobileNo, but your function is looking for mobno. Change your function to accept the parameter MobileNo, and you’ll get your value.

    public JsonResult getClientMobNo(string MobileNo)
    {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often use this jQuery validation plugin to validate forms and it works great.
I'm trying to use a custom validator with jQuery Validation plugin. However, I'm unsure
All, I am trying to use JQuery's URL Validator plugin. http://docs.jquery.com/Plugins/Validation/Methods/url I have a
I use jQuery form validation plugin to validate some form fields. As for now
I'd like to use jQuery's validation plugin to validate a field that only accepts
I use the JQuery Validation plugin to validate a form ( http://docs.jquery.com/Plugins/Validation/ ) For
I use the jQuery Validation plugin for validation using remote: /valid_password.json to check on
Using jQuery validation plugin - http://docs.jquery.com/Plugins/Validation Wanting to use the remote method on a
I use bassistance jQuery validation plugin to validate my inputs. I want to add
I'm new to jQuery but want to use this form validation plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.