Questions tagged as 'jquery'

2
answers

add days to a specific date with java script

I have a date in format dia-mes-año 15-02-1981, I would like to be able to add days to that date. The examples that I have been seeing, I do not know why but I add months not days. I'm trying the next code. Ffin="15-02-1981"; //Este seri...
asked by 15.11.2018 / 17:49
1
answer

understand a method with closets (), next and find ()

I have a method that another programmer did but I can not understand it, could you help me understand the method please function guardar() { if ($("input[name='horarioEntrada']").length > 0) { $(".loader").fadeIn("fast", function() {...
asked by 31.01.2018 / 17:01
3
answers

bootstrap-select returns the stuck text of what is selected

I have a doubt .. I am working with bootstrap-select for the first time, when selecting more than one option on the screen, I show them separated by a comma, for example: ONE, TWO, THREE, FOURTH and when getting the value from the js file with t...
asked by 14.11.2018 / 21:01
1
answer

$ (this) returns undefinied in select event change

I have the following simple code: $('#filtro-atenciones').on('change', () => { console.log("Entra!!"); console.log(this.value); console.log($(this).val()); }); <script src="https://code.jquery.com/jquery-3.3.1.min.js" in...
asked by 01.02.2018 / 14:18
3
answers

Convert hours to minutes

I would like to convert a data in horas format in minutes using JQuery Data to convert var hora='3:19:00'; result var nuevoDato= '199';     
asked by 01.02.2018 / 23:56
1
answer

how to do show. () to more than one class at a time

Hello, I'm trying to do the following: $('.1','.btn').show(); I want to make visible only the div's that have those two classes together like this: <div class="1 btn"> I've tried doing it like this: &...
asked by 29.01.2018 / 00:12
2
answers

Retrieve label value using jQuery

I have the following line, I am using this to know the id but it gives me empty $(document).on('click', '.editRuta', function () { alert($(this).find('.id').text()); }); <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.c...
asked by 17.04.2018 / 06:29
2
answers

Disable a list group

I have a list group like in the image I want to disable it when I touch the "Edit" button using the following code, but when I do it the buttons are still "clickable", how can I disable it correctly? Thanks Code to disable list grou...
asked by 18.04.2018 / 02:38
1
answer

Problem when traveling the json obtained with ajax

I have this code HTML to consume JSON by ajax , but it does not show me the data I want to bring. Can you tell me what I'm doing wrong? The url of JSON is this: link * This is the script that t...
asked by 09.01.2018 / 19:17
2
answers

Clone rows in JQuery but with different ID

Is there any way to clone an element in JQuery but that the clone has a different id? That is, I have a table and each box has its own id, if I wanted to add a new row with a similar appearance but its boxes had another id, is that pos...
asked by 31.12.2017 / 13:21