Questions tagged as 'jquery'

1
answer

Print the result of an AJAX query in an input text

I usually print an AJAX response on a div or span. My question is if I can make my result show in an input text. Example: $(document).ready(function() { $('#form, #foo').submit(function() { $.ajax({ type: 'POST',...
asked by 28.06.2017 / 16:56
2
answers

how to handle errors using $ .ajax ()?

I have tried everything and I can not catch the errors like for example when there is no internet connection or when you can not make the request with the server, I hope you understand me and can help me, I have said that you can handle the erro...
asked by 11.06.2017 / 19:37
3
answers

Send variable to a modal

How about, I'm trying to send an index.php variable to a modal without reloading the page at all, since some forms are previously filled in, then I can not just send by get and reload the page (which would be very easy) var fech = $('#input')....
asked by 09.06.2017 / 19:38
3
answers

Remove label style from several label that are inside a div (JQuery)

As the title says, I want to remove the style tag from the following code by JQuery . Code: <div id="action_ligne" class="action_ligne"> <label class="lbl obligatorio checked" style="color: red;">Code postal<...
asked by 18.08.2017 / 21:41
2
answers

show 9 items each

Estimates I need to list only 9 items of this function I do it with each sample all the contents as I can limit to 9 when loading for the first time Thanks. function Cargardata() { var searchField = $('#search').val(); var myExp = new...
asked by 18.08.2017 / 20:40
1
answer

Pass several data to modal

I am trying to send several variables to a modal but the question is that it only sends me 2 out of 5 variables (variable 1 and 5). Could someone throw a cable? Thank you very much With this I call the modal <a data-toggle="modal" data-i...
asked by 17.08.2017 / 11:08
2
answers

Capture the value of an Input Text that is inside a Row of a Table, by pressing a Checkbox with jQuery

I have this table, as seen in the capture , where the data is dynamically added to the search engine with jQuery . I need to get the value of% co_of% Amount , when the% co_of% of the Discount is activated. In each row...
asked by 21.06.2017 / 19:08
1
answer

How to enter an input when clicking on a td with jquery or javascript? [closed]

I have a hidden input in a td and I want to click on the td appear (this I already do) and appear the cursor within the input without having to click again, to edit the input?     
asked by 19.06.2017 / 15:16
2
answers

How to create a div (html) dynamically?

Good day. I do not know if the question I put is something that you will understand easily, so I will explain. I was thinking, when we want a menu to be hidden or displayed according to the scrolling scroll up or down, we can do it according...
asked by 03.09.2017 / 16:56
1
answer

How to send a link through AJAX?

What I need specifically is that by clicking on a <div> or the label that was, act as a link, but only to request a JSON request, that is, it is a link that does not direct to any specific side, only performs a write job on the serv...
asked by 23.06.2017 / 16:34