Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#Empresa_ID').change(function() {
- var idEmpresa = $('#Empresa_ID').val();
- $.get('/empresaModuloConsulta2/'+idEmpresa, function (ModulosPivot) {
- const modulos = $('input[type=checkbox]');
- for (var i =0; i < modulos.length; i++) {
- modulos.checked = (modulos.value == ModulosPivot[i]['Modulo_ID']);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement