Questions tagged as 'jquery'

2
answers

show a div if some fields are not empty

I have some input that I need to validate and I have an input with id "show" hidden with hide (); I want to show that input if for example salary and position are not empty the other input that I have may be empty. I was stuck with the if...
asked by 01.03.2018 / 16:45
1
answer

DataTables in dynamic Tabs are initialized wrong

Testing the library of DataTables , doing tests and using the dynamic bootstrap tabs, I put a table in each dynamic tab (2) and the initialize to be DataTables, when doing this note that the table of the active tab is correctly initialized, how...
asked by 08.03.2018 / 03:30
1
answer

Change properties of div with JS

I need that when selecting in the select with id='numplacas' the value 2 shows the div that is hidden , it is displayed, in the case that the value of the select is 1 that adds the class hidden to div with id='placa...
asked by 13.02.2018 / 17:25
2
answers

Make me get the total of adding and subtracting several jquery inputs

I have the following function that reads the subtotal and adds the inpuesto that is defined in a hidden input and gives me the total, all that works well but I want to add a discount and send it so that when I enter it in the corresponding input...
asked by 14.02.2018 / 22:10
1
answer

How to know which user is logged in with ajax requests? [closed]

I have a problem with my ajax functions, I made a simple login with a request get to a REST server asking for the data of userName, password and id and I compare it with the entered data userName and password and if it matches one it redirects m...
asked by 04.04.2018 / 09:33
1
answer

Automatic translator

I have the following problem. link I'm using that example to set up my translator. but he does not do anything to me, I do not know what he's doing wrong. In the webroot is the home-in and the home-is home-en.json { "ti...
asked by 03.04.2018 / 23:17
1
answer

Uncaught TypeError: $ (...) .appendTo is not a function

I have this element: <p class="info" style="text-align: left;">Encuentra toda la info aquí</p> And I want to move it to this div ; <div id="informacion"></div> I have tried in the following ways: $('.in...
asked by 12.03.2018 / 16:12
2
answers

Show table in HTML with Ajax and Json

I have the following JSON object and would like to show it in an HTML table: { "data":[ { "0":"328", "tr_id":"328", "1":"USE", "tr_oficina":"USE", "2":"4", "num_ofic...
asked by 11.03.2018 / 02:45
1
answer

Time it takes to load a table with Datatables

I was doing tests with a table with 2,000 records and datatables worked fine, now I change it with another one that has 16,000 records and after 7 seconds gives error. In the debugger I see that the select became complete (the 16,000 records)...
asked by 06.02.2018 / 18:04
2
answers

Bootstrap & Jquery Modal Window - Update content

I am creating a website where clicking on a button opens a Modal window where it shows a series of images. In each of those images there are the download and delete buttons. By clicking on delete I do not know how to make that image...
asked by 29.01.2018 / 12:15