Questions tagged as 'javascript'

1
answer

javascript prototypes

Hello, I would like to know how to access the card to be deleted from my main.js but by calling the deleteCard method in question // MAIN $(document).ready(function(){ initBtnListeners(); }); function initBtnListeners(){ $('#...
asked by 24.05.2018 / 12:09
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
2
answers

Delete and add Class to List with Jquery

Greetings. I have made a small list, which I want to add a type effect: focus of selection with a background, I give it through a class is-active . the purpose is that when you press another element, delete the class from the one that h...
asked by 25.05.2018 / 19:46
2
answers

Error onclick Uncaught ReferenceError

I want to call a method of my JS and pass a variable but it gives me Uncaught ReferenceError, how can I fix this. PHP / HTML <div class="col-4 col-md-2 topbutton "> &...
asked by 26.09.2018 / 02:55
2
answers

how to access a value of a specific property of an object in js

I have a multidimensional object in javascript that I want to access and get a value of a specific property but when trying to get the value it gives me an error "Can not read property 0 of undefined", what is the error. var objeto2 =...
asked by 07.09.2018 / 00:50
2
answers

how to replace an ajax call with another

I have a slight doubt about how to substitute an element for another within a for , in this case I make a call to a '$ .post' that collects a json and shows it in a kind of letter to say it of some way, the information collects it well, an...
asked by 03.09.2018 / 10:05
1
answer

why do variables and other problems not work in this code?

I need to make this calculator work but I do not know what's wrong: var operandoa; var operandob; var operacion; function init() { //variable var resultado = document.getElementById('resultado'); var reset = document.getEle...
asked by 19.12.2017 / 02:15
1
answer

localStorage utility

I wanted to save a series of user data, but not use a database. I have seen the existence of localstorage but I do not finish understanding it. If the user writes something and I store it with localstorage . If tomorrow opens the...
asked by 03.01.2018 / 14:24
3
answers

Execute mathematical operation of a string and return the result [duplicated]

I tried to do it but I can not find how to do it, at a certain moment in the JavaScript I get a string of type (4+5)/2 and I want to get this operation. Try using parseFloat do not recognize symbols like + or ( s...
asked by 15.12.2017 / 19:22
4
answers

Javascript how to put an associative array in another array?

Well, that puts an associative array under the form. var tabla[]; tabla['nombre']='Jose'; my code is as follows: var regs = []; var usuario = []; usuario['nombre'] = 'Jose'; usuario['dni'] = '45875458X'; regs[0] = usuario;...
asked by 12.01.2018 / 19:31