Native (non-jqueryui) way to set prompt() input field inline.
Posted
by Anthony
on Stack Overflow
See other posts from Stack Overflow
or by Anthony
Published on 2010-04-07T00:45:24Z
Indexed on
2010/04/07
0:53 UTC
Read the original article
Hit count: 385
I might just be using the wrong keywords on Google, but what I have in mind is:
--------------------------------
| What is your mailbox? |
| |
| [ ]@mail.example.org |
| |
| [OK] [Cancel] |
--------------------------------
The idea being that the input field is followed right behind by the mail server name, to help avoid instances where:
If I don't make it follow right behind, the user puts in the whole thing,
If I default it to "[email protected]" they delete the server name.
In either case, it's not too big a deal, as I will know that if the returned value does have the server, to remove it and if doesn't, I know what server it belongs to, but I think this visual aid will be a better user experience and lower the amount of validation worries I tend to get.
© Stack Overflow or respective owner