0
Use this function to call a page:
$('#selector1').on('change',function(){
$.ajax({
type : 'post',
url : 'servico_institucional.php', // aqui eu indico qual o arquivo que vai ser enviado essa variavel retorno
data : 'retorno='+$("#selector1").val, //Cara, aqui eu pego o valor do input com o ID AJAX_INPUT E passo para uma variavel chamada retorno
dataType : 'html',
success : function(response){
$('.form-servico').html(response);
},
error: function(XMLHttpRequest, textStatus, errorThrown){
alert("Erro!");
}
});
});
However, when I call the page, the other scripts jquery
stop working. Example: menu scripts, responsiveness among others.
How to fix this problem?
try to pass on your date, the value like $("#selector1"). val()
– Thiago Friedman
Must be giving js an error. You’ve debugged?
– Ivan Nack