I want when I click on the radios to call the function, it is currently like this.
$("input[name='txtCategoria']").on('blur', function(){
var txtCategoria = $(this).val();
$.get('buscar_tipos.php?txtCategoria=' + txtCategoria,function(data){
$('#tipos').html(data);
});
});
But when I click on the radio and click on another part of the page that appears the query, I wanted it to click once it is executed, so I tried.
$("input[name='txtCategoria']").on("click", function(){
var txtCategoria = $(this).val();
$.get('buscar_tipos.php?txtCategoria=' + txtCategoria,function(data){
$('#tipos').html(data);
});
});
But it did not work, could anyone help me?