javascript - How to disable or enable button according to if text boxes empty or not? -
i work on angularjs projerct. i have button in template , 2 input text elements. the button have enabled when 2 input boxes has string. here html code: <form id="loginform" class="form-horizontal" role="form"> <div style="margin-bottom: 25px" class="input-group"> <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> <input id="login-username" type="text" class="form-control" ng-model="username" placeholder="username"> </div> <div style="margin-bottom: 25px" class="input-group"> <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span> <input id="login-password" type="text" class="form-contr...