Click on option in select and appear other fields

Asked

Viewed 61 times

0

I’m trying to do something similar to the figure below:

inserir a descrição da imagem aqui

http://jsfiddle.net/zbdvke2w/11/

How do I stop for the fields that are in ICMS and ICMS ST with ng-if appear only after clicking on option 10 - Tributada com Cobrança de ICMS por ST?

It turns out that currently if I click any select option from Situação Tributaria appear the fields for ICMS and ICMS ST, I did so by not knowing yet filter by option, so if you select any option in select Tax Situation will appear the fields, how to do to appear only after you click on the option 10 - Tributada com Cobrança de ICMS por ST?

  • I looked over your code, all it needs to do is a "condition" in yours ng-show or ng-if, for example: ng-show="icms.situacao.value == 12".

  • http://jsfiddle.net/fqd0ezhz/

  • Thanks @Pedrocamarajunior .value did not work properly for me switched by .id and it worked. But this happening something curious, when I click on Normal Taxation -> 00 - Taxed Fully (for example) appears the Respective fields... then I go to select Regime and choose another regime, select tax situation disappears but not the content ICMS and ICMS ST http://jsfiddle.net/zbdvke2w/13/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.