I have a login form for a website that requires email address and password. Most users have the same email address domain, but a few users have email addresses from a different domain.
Is there a way to automatically use a default domain name in the email address input field, while still allowing the user to type in a different domain name?
For example, if | is the cursor, the input would look something like this while typing:
|@defaultreallylongdomain.com (user hasn't typed anything yet)
b|@defaultreallylongdomain.com
bo|@defaultreallylongdomain.com
bob|@defaultreallylongdomain.com
bob@|defaultreallylongdomain.com
bob@g|
.
. (user keeps typing)
.
bob@gmail.com|
The default domain shows up to the right of the cursor, until the user starts typing a domain name that doesn't match the default domain.
Any ideas on how to accomplish this?