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 3783476
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:13:49+00:00 2026-05-19T11:13:49+00:00

How can be 1 of the form fields validate with ajax call and the

  • 0

How can be 1 of the form fields validate with ajax call and the rest fields with client validation?
(I use Jquery + Jquery validate plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/)

The case:

register.html

<form id="register" name="register">
firstname<input id="username" name="username"/>
user<input id="user" name="user"/>
phone<input id="phone" name="phone"/>
</form>

<script src="../lib/jquery.js" type="text/javascript"></script>
<script src="../jquery.validate.js" type="text/javascript"></script>
$('#register').validate(
{
rules: {
        firstname: "required",
        phone: "required"
  }
});

user_exist.php:

if ( userExist($_REQUEST['user']){
  echo 'success';
}
else{
  echo 'please choose another user'
}

I know how validate only firstname and phone, but username that should be validate by server before submit I don’t.

Please help me to do serveer ajax validation for user field.
(I simplify the code)
Thanks

  • 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-19T11:13:50+00:00Added an answer on May 19, 2026 at 11:13 am

    there’s an exact example in the demo pages:
    http://jquery.bassistance.de/validate/demo/milk/

    username: {
        required: true,
        minlength: 2,
        remote: "users.php"
    },
    

    Just remember to echo "true"; on success in your server side

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using this plug in to validate a form http://bassistance.de/jquery-plugins/jquery-plugin-validation/ I've got 3 fields,
I'm using the jQuery validation plugin to validate a form. The form fields are
I'm using jQuery Validate for my form validation. I'm making an Ajax call to
I am creating a popup jquery ajax comment form using the jquery validation plugin.
I'm trying to user jQuery Validation plugin to validate a signup form, but I
I have a form with several fields and using jQuery validation plugin. My input
I have a form where users can add input fields with jQuery. <input type="text"
I am using the jQuery validation plugin on my form. I set the basic
I'm using jQuery with PHP for form validation. I want to return the fields
I am using this form validator (http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/) and am having issues getting it to

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.