Questions tagged as 'jquery'

1
answer

Index of the link with jquery

Let's suppose that throughout the sun I have several links with the same class, as I can know the index that is that link when clicking. <a href="#seccion" class="section-modchooser-link"></a> // Este seria el indice 0 <a href="...
asked by 27.04.2018 / 16:28
2
answers

Deleting events in jquery to dynamic elements

Hello, I have the following problem. I searched a lot, here and in google and I can not find the problem. I have a table that is updated dynamically: PHP + Mysql + Jquery The table that is initially loaded looks like this: <table clas...
asked by 03.05.2018 / 16:58
2
answers

How to avoid sending a form

I want to know how to avoid sending a form. What I need is that if the sum of number2 with number3 is equal to number1 the form is sent but if it is different that the sending of the form stops avoiding the values in the input tags are deleted....
asked by 13.09.2017 / 00:56
2
answers

how to set a maximum response time in ajax?

I have a call through ajax that returns me an answer, what I want to do is, for example there are times when the answer takes a long time and in these cases I would like to put a message that says something like that your request took longer tha...
asked by 19.09.2017 / 13:12
2
answers

AJAX: XML read error: tag without partner. Expected: / img

I am loading ajax when testing in the browser it launches the following error:    XML read error: tag without partner. Expected: </img> Ajax code hosted in script.js $(document).ready(function () { $.ajax('otrap...
asked by 02.08.2017 / 19:53
3
answers

Show and Hide functions do not work well in Internet Explorer

I am trying to adapt a small app. web that uses some jQuery functions and I have found that it does not hide elements of the page when with another browser if it does well. jQuery(function() { // Handler for .ready() called. jQuery('.dock...
asked by 01.08.2017 / 16:53
6
answers

How do I get an onclick inside append ()?

I try to make an action onclick within a append . Here is my example: $('#tr').append("<td><a onclick='nombre(a,b)'></a></td>") by clicking on the link I want to pass some parameters. I already tr...
asked by 14.06.2017 / 18:40
1
answer

Capture the name of the select in HTML and JQuery

I would like to know if there is any way to capture the value of name of a select , that is, when I put a alert or a console.log I get 1 ó 2 ó 3 since I can not give it with the .val because I'm occupying...
asked by 15.06.2017 / 18:45
4
answers

Close Modal Popup

I have a modal popup that closes when I select an item in a table. Screenshot: The popup closes, but doing so leaves my template html blocked. Why is this happening? This is the code I use to close the popup: $(docu...
asked by 16.03.2017 / 15:07
3
answers

How to get JSON data an external website?

I want to get the value of a JSON that I send from another external web example: I'm sending this from the other website text.php <?php echo json_encode(array("texto"=>"ejemplo")); ?> {"texto":"ejemplo"} And now...
asked by 15.03.2017 / 03:27