Answer the question
In order to leave comments, you need to log in
How can I change the class and checked attribute when clicking on a div?
Hello!
There is such layout
<div class="not_show" id="notShow" ng-click="notShow()">
<span class="checkPrompt" ng-class="{'hide': checkedPrompt}" id="check"></span>
</div>
<input type="checkbox" ng-checked="checkedPrompt" class="checkBox" id="notShowCheck" hidden="hidden">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question