I have the following lines
$(document).on('change', '#select_encuestas', function(event) {
//alert( this.value );
//alert("sssd");
var x = document.getElementById("select_encuestas").value;
//alert("id.."+x);
console.log();
if(x!=0){
$("#agregarSeccion").show();
}else{
$("#agregarSeccion").hide();
}
// definirEncuesta(x);
parametros="id="+x;
$.ajax({
url:'secciones_ajax.php',
data: parametros,
beforeSend: function(objeto){
$("#loader").html("<center><img src='loader.gif'></center>");
},
success:function(data){
$(".outer_div").html(data).fadeIn('slow');
$("#loader").html("");
// load(1);
}
});
event.preventDefault()
I need to send the id to the pagina_ajax page but apparently it is not sent in id ... I thought it was the Event but I think it does not work like that