Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var var ds_rateio = {};
- var teste = {};
- $('select[name="insTipoRateio[]"] option:selected').each(function() {
- if(typeof(ds_rateio[$(this).val()]) == 'undefined' || typeof(teste[$(this).attr("data-nf")]) == 'undefined'){
- ds_rateio[$(this).val()] = [];
- teste[$(this).attr("data-nf")] = [];
- }
- ds_rateio[$(this).val()].push($(this).attr("data-cnpj"));
- $.each(ds_rateio, function(key1, value) {
- value.push(teste);
- });
- });
- var ds_rateio = JSON.stringify(ds_rateio);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement