Hi This is a simple question i guess:
My requirement is in the Text box whenever user enters mail, the domain name should be appended automatically.Also the name entered should not allow special characters except ‘.’ ‘_’ in reality. Also the user should not be allowed to add any other domain except which is specified in the property file.This is in JAVASCRIPT
Hi This is a simple question i guess: My requirement is in the Text
Share
Why not simply show
|_____________| @yourdomain.com
and do the appending either when submitting (onsubmit event) or on the server side?
e.g.
See http://msdn.microsoft.com/en-us/library/ms536972%28VS.85%29.aspx
EDIT
quick validation regex. Note: not tested
Edit: fixed syntax error