Questions tagged as 'jquery'

4
answers

Difference between $ ("# item") and $ ("# item") [0] Jquery

I'm trying to understand how Javascript and Jquery work. I know this: var contenido = document.getElementById("contenido"); contenido.text("Hola desde Javascript"); It's the same as this: var contenido = $("#contenido"); contenido.tex...
asked by 22.01.2017 / 21:57
2
answers

Using localStorage to hide a div

Basically the problem I have is that I do not know how to hide the input and the button with localstorage , so when I refresh the page I do not show the input or the button, just the name. HTML <span id="label-user"&g...
asked by 29.03.2017 / 11:52
2
answers

How to use a function in Jquery

Here take into account that I will only execute the Else; where I want that after applying the css style I would like to call another function $(document).ready(function () { $('.boton').click(function(){ if ( $('.relat')=="block"...
asked by 01.04.2017 / 04:19
1
answer

Error adding N elements with Javascript

I have a problem adding all the totals, it manages to add the totals of each product and a final total but when editing a price or quantity it is added to the final total and it is not edited correctly. Code: <!DOCTYPE html> &l...
asked by 28.03.2017 / 17:50
2
answers

on click on a different selector than the one you want

I must execute a function in JQuery when I click on a class other than "hello", that is, when I click on any element that does not have the "hello" class, I execute a function, something like: $(document).on("click touchend",!".hola", function...
asked by 25.10.2016 / 04:51
2
answers

How to convert a variable from undefined to empty

Currently I have the following function where I get certain values. $('#listado-sucursales').on('change', '.sucursal_correo', function (e) { console.log("Obteniendo sucursal"); let sucursal_correos = $(this).closest('.tr_correos');...
asked by 20.12.2018 / 01:09
4
answers

Datatables jquery ajax error canceled

I'm doing a catalog of kardex of the employee where I have 2 instances of the datatables plugin jquery : The first request is done correctly but the second one sends an error ajax canceled . I am not very clear why this error is...
asked by 06.01.2016 / 17:57
3
answers

Jquery methods "keypress" and "blur" do not work

Create 2 functions that are validating an input so that only letters are not written, the problem is that I do not know why the code I am putting is not running, here I leave it. <!DOCTYPE html> <html> <head> <...
asked by 28.12.2018 / 21:19
2
answers

because I get the error "Uncaught ReferenceError: slider1 is not defined at onload"

I can not understand why I get the error I mention in the title "index.php: 111 Uncaught ReferenceError: slider1 is not defined     at onload " If someone very kind could help me, function uhrzeit(anzeige) { Heute = new Date();...
asked by 18.10.2018 / 05:28
1
answer

Select with jquery all the elements except a specific ID

I have an html that can contain several input [submit] dynamically loaded from several php files through includes. The case is that I try that all buttons, by default, remain with the disabled property from the start of the html and until the us...
asked by 24.05.2018 / 15:33