Questions tagged as 'jquery'

2
answers

Show the selected text dropdown

I have a dropdown that I filled with AJAX dynamically and it shows correctly, I need to show the selected one, I tried this without results: alert($('#ul_sucursal').find('option:selected').text()); alert($( "#ul_sucursal option...
asked by 27.06.2017 / 18:16
2
answers

Why do not I apply Editable to my table?

The problem I have is that I have a table in HTML in the following way <!-- TABLA DETALLES PRODUCTOS --> <div class="col-md-12"> <table id="TableProducts" class="table table-bordered table-responsive"> <thead> &l...
asked by 18.07.2017 / 00:15
1
answer

Select row and bring the values

I have this table function highlight(e) { if (selected[0]) selected[0].className = ''; e.target.parentNode.className = 'selected'; } var table = document.getElementById('table'), selected = table.getElementsByCla...
asked by 18.07.2017 / 16:30
1
answer

Change ID with Jquery

My question is as follows. I have two audio tags in html, but one has the id="player", when I click on a button I want the id to change to the next tag. I have the following. <audio id="player" data-value="dato"> <audio id="" data-val...
asked by 05.12.2017 / 03:39
4
answers

How to invoke 2 functions in Javascript, AJAX and PHP

I'm doing a little program which when the user clicks, it invokes 2 functions that do different things. When I click they send both (I checked it in the Chrome developer tools) and in fact they respond correctly to both PHP, however when they...
asked by 01.07.2016 / 01:32
3
answers

Redirect only once

I have an index.html that does an automatic redirection with the window.location function to a different domain. The problem is that if the user gives back to the browser it redirects again, so it is a loop. How can I do that if a user gives...
asked by 18.06.2016 / 00:15
2
answers

Problem with jQuery

I can not make jQuery work This is my website bersekerprueba.esy.es Download it and follow these instructions link What am I missing? In my FTP I have the folders bjqs.css demo.css Styles.css Index.html Folder /...
asked by 16.06.2016 / 06:18
1
answer

Is it possible to place a background image on a table using the jquery datatable plugin?

I have tried the following ways without result ... ... in the body of the table <tbody background="./images/credibanco.jpg" style="background-repeat: no-repeat; background-position: center center;"> <?php require_once '../Co...
asked by 03.05.2018 / 21:17
1
answer

Post with Ajax always gives an error but it still works

SOLUTION: One of the given solutions (which was the one that worked for me was to eliminate dataType : 'json', then if the route remains as in my case /search/search/undefined that I solved changing window.location.href = respon...
asked by 12.09.2017 / 13:52
2
answers

Problem when showing and hiding divs with jquery

I have 3 divs with which I want to change the content every time I change the option select, but when I run in the browser it does not do what I expect it to do, will it be that I'm missing something to make it work? function seleccion...
asked by 18.04.2017 / 17:59