Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('input[name=motor]').on('change', function() {
- var fabricante = $('select[name=fabricante]').val();
- var seguimento = $('select[name=seguimento]').val();
- var veiculo = $('select[name=veiculo]').val();
- var motor = $(this).val();
- $.ajax({
- method: 'post',
- url: 'combo.php',
- data:{opcao: 'motor', fabricante: fabricante, seguimento: seguimento, veiculo: veiculo, motor: motor},
- dataType: 'json',
- beforeSend: function(){
- $('#status').html('Aguarde, buscando...');
- $('div#conteudo').html('');
- },
- success: function(data){
- $('#status').html('');
- $('div#conteudo').html(data.conteudo);
- $('input[name=n_processo').val(data.processo);
- }
- });
- $("input[name=motor]").keydown(function (e){
- if(e.keyCode == 13){
- $("input[name=motor]").blur();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement