Questions tagged as 'javascript'

3
answers

how to use a href on a label other than (a)

I'm using a tag with a href that calls id to do its function <a href="#openModal">Abrir</a> It happens that I can not use a tag at the moment because I'm hurting all the work, I want to know what other tag I can use and th...
asked by 25.09.2018 / 00:12
2
answers

Validate several input with a single function

I have a form made in HTML with several controls and a script in javascript to validate if they are full or not, the problem is that I want to validate each one but not to do a function for each control window.onload = function () { do...
asked by 09.08.2018 / 20:26
2
answers

List within a for in

I have the following code for (a in secciones){ ncompoa += "<h1>"; ncompoa += secciones[a]; ncompoa += "</h1>"; ncompoa += "<ol>"; for (li in producto) {...
asked by 06.08.2018 / 18:42
1
answer

How do you load data from ajax when the page loads?

What I want to do is that when entering the page, a table with the information of the users is loaded, but using JS, I do not like to put PHP code in the HTML, the question is that I do not know how to apply it through ajax, Data will be sent, w...
asked by 28.07.2018 / 02:13
3
answers

That an alert tells me that Fila eliminate

Good morning. I have this Jquery code: $(document).ready(function() { $('#bt_add').click(function() { var check = []; $("#tabla").find('.selected').find('td').each(function(){ if($.trim($(this...
asked by 21.07.2017 / 16:56
2
answers

Variable step by Javascript reference

I have been reading about the value and reference steps in a book, and since I am learning Javascript, I have doubts about how this can be done. I tried the following: var X = 10; function cambiar(variable){ variable++; } ca...
asked by 27.06.2017 / 03:14
1
answer

Copy an object so that it is another instance than the original one

I have the following data: data: { usuario: { nombres: 'name', email: 'cor', telefono: 'tel', fechan: '2018-10-15', rol : 3, idTarget: 0 }, lista...
asked by 18.10.2018 / 19:36
1
answer

Why does JSON.stringify () return an empty array?

/* Validar checkboxes clickeados */ var checkboxes = document.querySelectorAll('.single-checkbox'); var clickeados = new Array(); checkboxes.forEach(elem => { elem.addEventListener('change', (event) => { event.stopPropagation()...
asked by 26.11.2018 / 17:53
2
answers

Autocomplete text of an input based on data stored in Local Storage

Hi, I would like to know if there is any way that by entering characters in a input of type text a bar with previously entered suggestions is displayed, using JQuery , javascript , etc. I clarify that I do not want to o...
asked by 01.03.2017 / 19:48
3
answers

Detect what type of iOS device and android

Do you know if there is a way to detect which device is being used? For example, detect if it is iOS5, iOS6, iOS6s, iOS6s plus, etc. And on android if it's Samsung, Hawei, LG, etc. Thank you very much     
asked by 25.01.2017 / 18:56