AngularJS ng-disabled directive with expression is not working

前端 未结 3 955
猫巷女王i
猫巷女王i 2020-12-18 18:05

User Story: When a new user clicks the New User checkbox and accepts the TermsAndConditions radio button, the Register button should be enabled.

My code in angularJS

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 18:55

    I tried taking help from the above solution but it didn't work. So I found another solution. By adding the following code in the CSS for that element, solves my problem pointer-events: none;

    So in general :-

     element[disabled]{
      pointer-events: none;
     }
    

提交回复
热议问题