I have a script below that is currently working by waiting on the keyup of an input field, its not working very well because its very unreliable in that it can result in the value being checked without it grabbing the full word in the input field, basically more often than not its not searching using the full word entered into the input field.
So Im wondering if its better to use the option that the user first fills the full word in and then clicks a button to activate the function below, so could someone help me convert it from what it is to a call the function on button click after entering the value into the input filed.
Thatās when they leave isnāt it, so no I donāt think that will work as they have to wait to get the nod that the username is free before continuing.
Not exactly. The blur event is triggered when they leave that field - that is when their proposed username has been completely entered. It is in fact the earliest point at which you can meaningfully test whether the value they entered is already taken.