F
F
Friend2016-10-15 20:35:49
Angular
Friend, 2016-10-15 20:35:49

How to make a hidden CheckBox depending on a selection?

There are 4 CheckBoxes:
1.Wood
2.Metal
3.Oak
4.Aluminum
Wood
Metal
Oak
Aluminum
When you click Wood, the Aluminum CheckBox disappears. How can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2016-10-15
@Tiran_94

<input type="checkbox" ng-model="tree">

<input type="checkbox" ng-model="aluminium" ng-if="!tree">

If you need it not to disappear from the DOM, but to hide and save the value, then use ng-show

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question