how to check availibility of user-id using javascript

pricks

pricks

@pricks-DwyTsq Oct 23, 2024
hi
i want to know how to check the user availibility of an userid in javascript when filling up a registration form.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Mar 20, 2010

    i don't know about how to connect database through javascript but can provide you a simple method
    just create a function check()
    in that create a array that will store userid;
    now when ever user submit form then call that function and compare userid with every

    element of array if there is a match then it will be successful

    Just give it a try if you face any problem then post it here