Skip to content
Snippets Groups Projects
Commit d0d426d3 authored by Jorge Moncadas's avatar Jorge Moncadas
Browse files

Actualización

parent 95986339
No related branches found
No related tags found
No related merge requests found
$(document).ready(function(){
var baseUrl = 'https://clubbalonmano-tfg.herokuapp.com/api/';
$("#cat").change(function() {
$("#eq").empty();
$.get("http://localhost:8080/api/accesible/getEquipos?categoria=" + $('select[id=cat]').val(), function(data){
$.get(baseUrl + "accesible/getEquipos?categoria=" + $('select[id=cat]').val(), function(data){
for(let i =0; i< data.length; i++){
var option = document.createElement('option');
const valor = data[i].nombre;
......@@ -21,7 +22,7 @@ $(document).ready(function(){
$("#EquipoSelectMenor").empty();
$.get("http://localhost:8080/api/accesible/getEquipos?categoria=" + $('select[id=CategoriaSelectMenor]').val(), function(data){
$.get(baseUrl + "accesible/getEquipos?categoria=" + $('select[id=CategoriaSelectMenor]').val(), function(data){
for(let i =0; i< data.length; i++){
var option = document.createElement('option');
const valor = data[i].nombre;
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment