Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: 'ajax/CarregaRamo',
- datatype: 'json',
- contentType: 'application/json; charset=utf-8',
- type: 'POST',
- success: function (json) {
- ---->>> str += '<option>Todos</option>';
- $(json.resultado).each(function () {
- str += '<option value=' + json.id_ramo + '>' + json.nome + '</option>';
- })
- $('#tipo_categoria').html(str);
- str = "";
- $('#modaltiporamo').modal('hide');
- },
- error: function (error) {
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement