Questions tagged as 'javascript'

3
answers

Paint rows in the table

I want to paint some rows of the table, is it possible to do this? I mean to put a condition for it to be painted: if(Object.values(totalDatos[j])[i].tipoUser=='verdadero' html += "<td if(Object.values(totalDatos[j])[i].tip...
asked by 22.11.2018 / 15:19
3
answers

Script does not work although the logic is fine

What I'm trying to do is that the div is painted red on the first click and the second click is aqua but does not work. For me the script is fine but I do not know what happens var div; var coloreado = 0;; function clickdiv() { di...
asked by 06.03.2018 / 04:16
2
answers

Because when using "document.getElementsByClassName" the border does not change?

If instead of using "document.getElementsByClassName", I use "document.getElementById" and assign an Id to it, in that case if it works, what am I doing wrong? function resalta(elEvento) { var evento = elEvento || window.event; swi...
asked by 05.03.2018 / 04:27
5
answers

Sum of elements in a multidimensional array in javascript [closed]

I have this arrangement and I need to add all the values of maracadores [i] [1] on the one hand and all of the [i] [2] on the other . And what I propose only adds the element where the for is 2 times, then at the end x only adds me 16.75 + 1...
asked by 06.03.2018 / 01:50
2
answers

How to get the superior parent with JQuery?

How can I capture the parent of containers for example I have this structure <fieldset><!--padre de todos--> <div class="on"> <!--some conten--> </div> <div class="footer"> <!--con este boton necesito...
asked by 29.09.2018 / 21:55
1
answer

VUE Js does not work as a bookstore at DJango

I have an application that I am developing in django and I want to use VUE js as a library but not as a framework, download the library and import it but I do not even work the example of vue Base.html The lbreira de vue is imported here...
asked by 02.10.2018 / 17:14
1
answer

Why do I have an "too much recursion" error when trying to submit () with JavaScript?

I'm trying to do a simple submit () through JavaScript but in the console I get an error of "too much recursion" and there the program is slowed down. I'm trying to validate the clicks within a modal and save the input's clicked into an array...
asked by 26.11.2018 / 15:17
2
answers

Create a select depending on the selected value in another

I have this select , in which the option that are in disabled are the CATEGORIES and within those categories there is a letter with number. In this select I have ordered them but they asked me that when I select one of...
asked by 14.09.2018 / 14:40
1
answer

How to calculate the total of each row?

I need to show the total ( .total ) of each row ( .numero ). Obviously my problem is the loop that I am doing wrong. Right now I have the following code: <table id="tabla" border="1"> <thead> <tr&g...
asked by 09.01.2018 / 13:32
3
answers

How to enter - between characters of a string in JavaScript?

Having the following string: var cadena = "Hola que tal estas"; I wanted to know how it can be shown separated by dashes, that is: var cadena = "H-o-l-a-q-u-e-t-a-l-e-s-t-a-s     
asked by 21.10.2017 / 23:30