javascript - How to init invalid email and show in input(type="email")? -


i have signup form built angularjs using frontend , backend (with express.js) input verification. whenever user enters invalid email address, qwidjq&/%, i'd show error message , send form user. email input field should contain invalid email value.

the problem cannot init input(type="email") fields invalid email values. input(type="text") works. here example.

any ideas how work around restriction? don't want use input(type="text") , custom directive. i'd keep input(type="email") changes keyboard layout on mobile devices.

thanks in advance!

perhaps display bad text next input element, e.g.

<input type="email" /><span id="emailerror">qidjq&/% not valid address</span> 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -