Questions tagged as 'jquery'

2
answers

Laravel views loaded with Ajax do not run external js files created with webpack

The problem is this, I have a form and I use ajax to bring me a specific section of it by means of a select field, I use views created with Laravel. ajax: $(function(){ function showPlanningFormProduct(){ var value = this.valu...
asked by 13.12.2017 / 03:47
1
answer

Pass text from a select to an input

I am trying that when selecting a value of a select, when opening a modal, the value and the text of the select are passed to different inputs. What would be the following: rut_usu = this input is passed the value of the selected option. j...
asked by 01.10.2017 / 21:17
1
answer

Why is the hr tag not placed below each div I indicated? from jQuery

From a array that I get from db , I create a modal with bootstrap3-dialog . I create the elements easily, the only one I have problems with is the hr tag, since they are not placed under each element that I indicate, but they are al...
asked by 24.09.2017 / 06:45
1
answer

The selected ones are accumulated

I have the following table: $(document).ready(function() { var table = $('#tblClientes').DataTable({ 'select': true, 'paging': true, 'info': true, 'filter': true, 'stateSave': true, 'processing': false, 'serverSide'...
asked by 20.09.2017 / 11:08
1
answer

Mysql query from Javascript with Ajax

I wanted to know how I can make a Mysql query at a specific time with this watch that I have in Javascript. I understand that you have to use Ajax, but I have tried to include the Ajax part inside the if of the time I want, and everything stop...
asked by 22.09.2017 / 20:20
1
answer

Take input value within datatable

People I have a table that loads medications from BD , it has a input in to indicate the desired amount of each, the question is that I can not take the value entered in input . I leave the code just in case someone could g...
asked by 15.09.2017 / 14:29
2
answers

Maintain style by making a row drag

I have a table with a style, and when doing a drag of a row the style is changed. I have looked with the inspecting element, but I am not able to come up with the solution. This is how the table looks without clicking: And that's...
asked by 18.09.2017 / 12:41
1
answer

Pass PHP variable to jQuery from different files

Good afternoon. I write after reading all the similar cases related to my query in this forum and not finding a solution. What I need to know is if you can pass the variable from a PHP document to the jQuery code written in another document....
asked by 28.08.2017 / 20:28
1
answer

Queries about JSON Jquery

I obtained data from an SQL query with AJAX, and in JQuery I get the results in the following way: var Data = $.parseJSON(result.d); var datos = Data.Resultados; // .Resultados es el nombre de mi tabla con los resultados de SQL Is it pos...
asked by 22.08.2017 / 17:32
1
answer

JSON from PHP, travel with JQUERY

I have generated a JSON in a PHP with MySQL data with the following code: header("Content-Type: application/json"); while($spot = mysqli_fetch_assoc($dbspots)) { $jsonspots[] = $spot; } print_r($jsonspots); This generates this output:...
asked by 21.08.2017 / 14:40