HTML pattern attribute for email validation -
i need email address of user match format while registering.
name.name@gmail.com
he should not able enter @yahoo.com or @hotmail.com or else other @gmail.com. also, allowed enter lower case letters , period [.] if wants. may please know how achieve this? have got far.
pattern ="[a-z.]+@gmail.com"
try
/^([a-z0-9.])+\@gmail.com+$/
Comments
Post a Comment