Questions tagged as 'javascript'

1
answer

Pass text from a select to an input

I am trying that when selecting a value of a select, when opening a modal, the value and the text of the select are passed to different inputs. What would be the following: rut_usu = this input is passed the value of the selected option. j...
asked by 01.10.2017 / 19:17
1
answer

WebAudio Api JAVA SCRIPT

I need your help to display on the screen and in real time the numeric data of the array freqByteData[i] This is the code in JavaScript, it allows to graph the frequency var analyser, canvas, ctx; window.onload = function() { can...
asked by 24.12.2017 / 18:16
3
answers

Switch function to change the style of a variable? [closed]

How can I change the color of this variable? try everything; ( var segundo = ["1", "2", "3"] var span; span = document.getElementById("span").innerHTML; switch (segundo) { case "1": { span.innerHTML.style =...
asked by 25.12.2017 / 04:09
1
answer

Why is the hr tag not placed below each div I indicated? from jQuery

From a array that I get from db , I create a modal with bootstrap3-dialog . I create the elements easily, the only one I have problems with is the hr tag, since they are not placed under each element that I indicate, but they are al...
asked by 24.09.2017 / 04:45
1
answer

Create input showing if it is right or wrong

My current project consists of a section in which through a javascript (preferably), you have to write a word in an input. Then, you could know if it is the correct word or it is not, then it would be incorrect. I have been thinking about all...
asked by 24.09.2017 / 19:36
1
answer

Return an array of html elements with javascript

I'm trying to do the following: elementos = function(param){ return document.querySelectorAll(param) } elementos('.link').onclick=function(){ //Codigo } Notify me error. What I want to do more exactly is something similar...
asked by 25.09.2017 / 04:54
1
answer

The selected ones are accumulated

I have the following table: $(document).ready(function() { var table = $('#tblClientes').DataTable({ 'select': true, 'paging': true, 'info': true, 'filter': true, 'stateSave': true, 'processing': false, 'serverSide'...
asked by 20.09.2017 / 09:08
1
answer

Dictionaries in Python vs Javascript Objects

I have a question as to whether the Dict in Python and the Object in Javascript are the same concept and since I consider that if they do the same. Example in Python nombres = {} nombres['Yoel'] = 1 nombres['Manolito'] = 2 nom...
asked by 20.09.2017 / 07:35
2
answers

Validate input in angularJS $ error

How can I validate so that the botón does not allow me to change the password until they are equal ?, something with $error or ng-message . I want that when I change the password validate that if there is something in the...
asked by 22.09.2017 / 17:12
2
answers

Empty properties of a polyline type object?

Empty properties of a polilyne type object I need to empty a polilyne type object so that it can be reused as many times as needed, I want the properties to remain empty, for example the object when you have values has something like that l...
asked by 23.09.2017 / 00:21