Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ($('input:checkbox[name$=riscos]').prop('checked')) {
  2.     $('#esconderMitigacao').show();
  3.     $('#riscosFinanceirosAPP').prop('checked', true);
  4.     $('#esconderMitigacao5').show();
  5. } else {
  6.     $('#esconderMitigacao').hide();
  7.     $('#riscosFinanceirosAPP').prop('checked', false);
  8.     $('#esconderMitigacao5').hide();
  9. }
  10.  
  11. // riscosAmbientais
  12. if ($('input:checkbox[name$=riscos2]').prop('checked')) {
  13.     $('#esconderMitigacao2').show();
  14.     $('#riscosAmbientaisAPP').prop('checked', true);
  15.     $('#esconderMitigacao6').show();
  16. } else {
  17.     $('#esconderMitigacao2').hide();
  18.     $('#riscosAmbientaisAPP').prop('checked', false);
  19.     $('#esconderMitigacao6').hide();
  20. }
  21.  
  22. // riscosDePrazoDeEntrega
  23. if ($('input:checkbox[name$=riscos3]').prop('checked')) {
  24.     $('#esconderMitigacao3').show();
  25.     $('#riscosDePrazoDeEntregaAPP').prop('checked', true);
  26.     $('#esconderMitigacao7').show();
  27. } else {
  28.     $('#esconderMitigacao3').hide();
  29.     $('#riscosDePrazoDeEntregaAPP').prop('checked', false);
  30.     $('#esconderMitigacao7').hide();
  31. }
  32.  
  33. // riscosDeProdutividade
  34. if ($('input:checkbox[name$=riscos4]').prop('checked')) {
  35.     $('#esconderMitigacao4').show();
  36.     $('#riscosDeProdutividadeAPP').prop('checked', true);
  37.     $('#esconderMitigacao8').show();
  38. } else {
  39.     $('#esconderMitigacao4').hide();
  40.     $('#riscosDeProdutividadeAPP').prop('checked', false);
  41.     $('#esconderMitigacao8').hide();
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement