- 1
How to Permanent placeholder
Hi everyone just was wondering how I can have a place holder that people can't remove when they want to tipe into the blank. Example: Email: youremail@gmail.com youremail I want to have changeable But @gmail.com should be permanent and not deleteable. Thanks for help
2 Respuestas
+ 6
That's not placeholder buddy, the purpose of the placeholder text was to provide a hint for the user about what to type as input.
Easiest way was to validate the form before submission, and append the domain to the input value, in case it wasn't there already. If the input given already has the desired domain, then simply proceed with the next step.
Alternatively, you can display the domain as a text to the right of the input. That way user understands that they don't have to manually type the domain.