Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
How to wait for remote validation?

I have created a form validation plugin just like jQuery Validation Plugin

But I have no idea how to wait for remote validations like check for duplicate usernames

jQuery Validation Plugin:

var form = $('form');

form.validate();

if (form.valid()) {
  //Do something if the form is valid
}

My Validation Plugin:

var form = $('form');

if (await form.valid()) {
  //Do something if the form is valid
}

I don't like to use async and await operators and I would like to know how the jQuery Validation Plugin does this without using async and await operators

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This is not because of not using await/async, it is because of how it is implemented

In fact, there is no other option

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!