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
Post a Comment