title: How to enable Button after filling all the input field and mobile field with 8digits in angular js?
body: <p>I want to enable my submit button when a user put all the details in the respective field and 8 to 12 digit of mobile number.</p>
  
  <p>Right now my code is accepting only mobile number condition and my button enables when user put 8 digit of mobile number.</p>
  
  <p>But i want him to put all the details and 8 digit of mobile number then only my SUBMIT button should enable</p>
  
  <p>This is my code : </p>
  
  <pre><code>&lt;form name="signUpForm" class="list form-margin" ng-submit="submit(data)"&gt;
      &lt;input type="text" ng-model="data.data.User.name" required&gt;
  
      &lt;select ng-disabled="show" class="dropdown-full sign-up-select country-dd"
              ng-model="data.data.User.internationalcode"&gt;
      &lt;option value=""&gt;Country Code&lt;/option&gt;
      &lt;option value="+91"&gt;(IND)+91&lt;/option&gt; 
      &lt;/select&gt;
  
      &lt;input type="text" ng-disabled="show" maxlength="12"
             placeholder="Mobile No" ng-model="data.data.User.mobile"
             ng-keyup="{{data.data.User.mobile.length&gt;=8 ? otpButton=true : otpButton=false}}"
             required&gt;            
  
      &lt;input type="password" placeholder="Choose a password" 
             class="input-type" ng-model="data.data.User.password" required&gt;
  
      &lt;div&gt;
         &lt;button id="btn-send-otp" ng-disabled="!otpButton"
                 type="submit" ng-click="disableButton($event);sendOTP();"&gt;
           Submit
         &lt;/button&gt;
      &lt;/div&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Any kind of help would be highly appreciated. Thanks</p>