Questions tagged as 'javascript'

3
answers

I have a problem with showing values on the screen with javascript

I'm just starting with this language, but when I want to show some value I do not see anything, any solution? HTML code <html> <head> <title>Arreglos</title> </head> <body>...
asked by 23.03.2018 / 00:10
3
answers

How to go through an arrangement that is sent from php to Javascript

Well doing this ajax that I send to a processing form which returns an Array that brings parameters and an array of names I will leave here my example of php code; This is an array of names which I fill with a for that I do $nombre[]= $nuev...
asked by 02.03.2018 / 01:01
1
answer

How to generate color gradients in Sound Bars with Reflection js / css

How to generate gradient as the image that I attached in a sound wave var elem = $('div'); var count = elem.length; var loop = function(){ setTimeout(function(){ elem.each(function(){ var $this = $(this);...
asked by 20.12.2017 / 14:03
3
answers

How to remove specific element from an array of objects? Javascript [duplicated]

Good headers, I have a problem, I hope you can guide me, in what way could you eliminate a specific element of an arrangement of objects like the following? array = [ {nom: "NOMBRE 1", tipo: "TIPO A"}, {nom: "NOMBRE 2", tipo: "TIPO B"}, {nom...
asked by 19.12.2017 / 13:33
2
answers

How can I get a value of a row by pressing a button in that row?

I have this function in javascript where I am directed to a PHP file which returns a file json and I show it in a table in the following way. JavaScript Code: $.each(students, function(calificaciones, std) { $('#tableStudents').app...
asked by 07.04.2018 / 22:46
3
answers

Onclick message with javascript does not hold [closed]

I have the following code to show a message when I press a certain button, but the message disappears almost instantaneously and can not be read correctly: function informacion() { document.getElementById("info").innerHTML = "Preferen...
asked by 26.03.2018 / 18:42
1
answer

How to make use of the $ filter AngularJs

How can I capture in $scope.personConOferta the person who has oferta <!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> <body&g...
asked by 10.04.2018 / 21:26
3
answers

How to clone an Array in a new one?

I need to pass information from array to another, in short, I want to copy the values of arrayPrimero to arraySegundo , but that the values can be changed without modifying the other, and I do not know how to do, I get error....
asked by 09.11.2016 / 16:45
2
answers

How to call functions with the onclick event? - Javascript

<script> function pausaplay(){ document.getElementById('demo45').play(); document.getElementById('demo14').pause(); } </script> <input value="Mirar Havana" onclick="if(this.parentNode.getElementsByTagName('d...
asked by 16.01.2018 / 20:41
1
answer

Angular ng-repeat and ng-if paint lines

Good morning community, how can I paint a certain line of a color, such as to highlight, according to the value of a field, dato1 dato2 dato3 xx xx 0 xx xx 0 xx xx 1 --> resaltar todo la fila o cambiar de color xx xx...
asked by 25.01.2018 / 15:16