Questions tagged as 'jquery'

2
answers

Dropdown with select2 and jQuery ajax

I am having problems trying to fill a dropdown (select) with select2 from a remote resource: I fixed my backend code so that the API returns the following JSON code: [ {"id":9,"nombre":"Jose"}, {"id":10,"nombre":"Juan"}, {"id":11...
asked by 18.10.2016 / 20:35
1
answer

Load MySQLl data in Modal Bootstrap

Hello, how could I load all the data of the person in a modal window when clicking on the button that is shown in the image called Register? I need to click on it to load all the data, which is in a database in MySQL. I know th...
asked by 22.02.2017 / 15:08
3
answers

Sum of inputs Checkbox and Text Real time

I need to add the text type input with the checkbox type input, at this moment when I click on the checkbox it adds up and shows the total, but I need to add the text type input called service price. This is a screenshot of my form:...
asked by 21.02.2017 / 18:09
1
answer

How to implement a Sidenav on my website?

Sorry for the inconvenience. The truth is that they would send me to Google when they read my question, but I have already searched and searched and I can not find a code to implement it on my site since doing something like this is out of my re...
asked by 26.02.2017 / 16:47
1
answer

How to obtain the data attribute of an input located inside a td of a datatable using Jquery?

I have the following datatable: $(document).ready(function () { tabla_productos = $("#idtabla_productos").DataTable({ "scrollX": true, "scrollY": "300px", "scrollCollapse": true, "searching": false, "paging": false, "ordering": fa...
asked by 06.04.2017 / 03:26
2
answers

accept numbers and character - in jquery

$('input[name="test"]').bind('keydown', function(e) { var keyCode = (e.which) ? e.which : event.keyCode return !(keyCode > 31 && (keyCode < 48 || keyCode > 57)); }); This code validates that the data entry contains only...
asked by 06.12.2018 / 22:39
1
answer

Sort by colum

I try to sort by ACEPTACION , how do I do it? I want to use jQuery DataTables to use order: [ [3, 'asc'] let validacion = [1, 3, 5, 4, 2]; let personas = ["ana", "juan", "pedro", "maria", "gustavo"]; var html = "<...
asked by 19.12.2018 / 15:35
1
answer

option element of a select selected by default

I have a select with a single fixed option disabled, the other options are added after an ajax query, I need to load the page to select the fixed option with the disable. <select id="desdeReserveInput" name="desde" class="form-control">...
asked by 28.11.2018 / 17:27
1
answer

How to remove a div without affecting a div equal jquery?

At the moment of doing click in a button add in jquery this generates a append with 4 inputs and two buttons, a button eliminates the row which works well, but there is another boton that must to be deleted alo...
asked by 27.11.2018 / 19:39
1
answer

Retrieve a hidden value in html

I have a hidden attribute, which I put through a java method: <input type="hidden" id="url" th:value="${url}" /> And I want to put an input of type text whose value will be the value that is in the hidden "url" <input type...
asked by 14.04.2016 / 12:12