Demo URL: https://ajax-username.herokuapp.com/
Try entering a username and then continue to fill out the form.
Taken usernames:
- wallyg
- dglutton
- stungeye
- mirage
- chin
- alan
index.php - Form component taken from the Boostrap web site. The only important element here is the username input.
main.js - Javascript that binds the username check to the "on blur" event of the username form input.
username.php - Username check API that returns JSON.