I need to hide the div with the id "NoveMeses" if all h3 elements display "N.A." Is there a way to achieve this?
If both h3 elements in row1 and row2 contain the text "N.A.", I want the div NoveMeses to be hidden.
Below is the code snippet using AngularJs:
<div id="NoveMeses" data-ng-if=$odd class="tableRowOdd" data-ng-show="item.TipoOWS === '9M'">
<div class="tableCellContent20">
<h3 class="cellTextType" ><span>{{::item.TipoCalculado.split('#')[1]}}</span></h3>
</div>
<div id="row1" class="tableCellContent20">
<h3 class="cellTextValue" data-ng-show="item.TipoOWS !== 'Datas'"><span>{{::item.Last.replace('.',',') | limitTo:7:0}}</span></h3>
<h3 class="cellTextValue" data-ng-show="!item.TipoOWS !== 'Datas'"><span>N.A.</span></h3>
</div>
<div id="row2" class="tableCellContent20">
<h3 class="cellTextValue" data-ng-show="item.TipoOWS !== 'Datas'"><span>{{::item.LastUm.replace('.',',') | limitTo:7:0}}</span></h3>
<h3 class="cellTextValue" data-ng-show="!item.TipoOWS !== 'Datas'"><span>N.A.</span></h3>
</div>
</div>