国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

angular.js - ng-show expression dynamic display
怪我咯
怪我咯 2017-05-15 17:04:02
0
1
647

form input input box
Click the search box to display the prompt content. Click elsewhere and the prompt content disappears

See the code below

<form class="form-horizontal" name="checkForm">
    <p class="form-group">
        <label class="col-sm-3 control-label">用 戶 名</label>
        <p class="col-sm-8 account">
            <input type="text" class="form-control showHide" placeholder="您的賬戶名和登錄名"
                ng-model="account"
                name="account"
                required="required"
                ng-pattern="regularList.account"
                ng-blur="checkForm.account.$blured = true;"
                ng-focus="checkForm.account.$blured = false;"
                autocomplete="off"/>
            <span ng-class="{'right':(checkForm.account.$error.pattern),'error':checkForm.account.$valid}"></span>
        </p>
    </p>
    <p class="tip-container"  ng-show="checkForm.account.$blured">
        <p class="input-tip">
            <i></i>
            <span>!支持中文、字母、數(shù)字、“-”“_”的組合,4-20個(gè)字符</span>
        </p>
    </p>
</form>

See the specific effects below

When I click on the search box, the prompt content displays

Please give me some guidance, thank you

怪我咯
怪我咯

走同樣的路,發(fā)現(xiàn)不同的人生

reply all(1)
曾經(jīng)蠟筆沒(méi)有小新

Are the expressions of ng-blur and ng-focus written backwards? Is it necessary to add $blured to the variable? Any variable can mark whether it has focus. You can take a look.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template