Always Return True In First Call Returns Correct Value After First Call
I am trying to find wheather exists in data base it always true returns on first attempt var IsEmailExistinInthemo = true; function EmailRegVerify(email) { var url = '/_service
Solution 1:
AJAX is asynchronous.
Your return
statement runs before the server replies.
You cannot use a return
statement; you need to take a callback (like $.ajax
does).
Post a Comment for "Always Return True In First Call Returns Correct Value After First Call"