Questions tagged as 'javascript'

1
answer

Dynamic Select with Javascript + jQuery with a Trello API request

I am making a request to the Trello API asking for some boards, I am currently showing those boards in a list in my HTML, but my intention is to show them in a select and I do not know how to do it, this is the way in which I'm doing. My HTML co...
asked by 15.03.2018 / 17:38
1
answer

While not working [closed]

What I would like to do is a while, where I was previously asked to indicate a name that is included in an array, and finally show me the position of the array where the name is inserted. The code is as follows: <script> va...
asked by 14.03.2018 / 16:11
2
answers

an element disappears but does not appear again. Why? fadeOut () fadeIn ()

I have a text that when I click on a button I want it to disappear, replace it with another one and reappear, for that I use the fadeOut and fadeIn functions of jQuery. The problem is that clicking on the button sometimes works correctly but in...
asked by 04.03.2018 / 14:39
2
answers

Compare elements of an array in javascript

I would like to know how to compare the rows of a matrix. This is in order to verify if the rows all the elements of the row are multiples of themselves. It is clear to me that one number is multiple of another when the result of its module is 0...
asked by 04.03.2018 / 02:17
2
answers

validate several input that its value is greater than 10 (mask)

I have a form with many inputs to enter phone, in all its value must have 10 digits I am using a maskara and I add a validate classTelephones to all input for phone, I do not know why I print 16 or 1 in the console . $('.validarTelefonos')...
asked by 05.03.2018 / 19:19
1
answer

Highcharts graphic does not respect array-defined colors

I have the case of a graph, which defines the colors that can be used in an array. colors: ['#01579B', '#0288D1', '#03A9F4', '#4FC3F7', '#81D4FA', '#DCE775', '#FFB74D', '#FFEE58', '#0277BD', '#4DB6AC', '#00E5FF'] The problem is that in some...
asked by 06.03.2018 / 16:20
1
answer

How to obtain the fields of the selected row and store it in an array?

I have a table with some data, I need to get the values of each input of each selected checkbox, and store it in an array or a json to be able to send it with ajax. The question is that I can go through the selected checkbox but I can not get th...
asked by 06.03.2018 / 22:02
2
answers

Cancel input event

I have several input in a table in which only numbers are accepted, I have created a function to verify that they are greater than zero or that they are different from empty after losing the focus, the javascript code I use for tha...
asked by 07.03.2018 / 16:04
2
answers

When clicking on an item in a list, enter its text in input

I'm making a list of tasks in JS, where there is an input and a button that when you press, add the task together with two edit and delete buttons. I have problems when editing, I would like to click on the edit icon, take the text of the tas...
asked by 15.07.2018 / 18:20
1
answer

Get the days of the week from a date - Javascript

Create a function that brings me the days of the week from Monday to Sunday : weekLabel(current) { const week = []; const weekFormat = []; current.setDate(((current.getDate() - current.getDay()) + 1)); for...
asked by 15.07.2018 / 17:56