Questions tagged as 'javascript'

1
answer

validate number in input and at the same time format it in thousands

Good day, I have the following code that formats several input that have the input_values_provisional class, placing point every three characters in this way: 500.000.000 The code itself works perfect on its own since I've checked it out....
asked by 06.04.2018 / 21:48
1
answer

How to use selectize for multiple options?

I have a question about how to use the selectize of angular to select several options, in two different selects, for example, the user has a series of options to select their tastes in terms of sports and assign a score of 1 to 10, footba...
asked by 09.04.2016 / 00:22
3
answers

Why does not the browser show me anything?

Hi, I am learning the operation of JSON with javascript consuming data from a weather api, but when I run it, it shows me the browser in blank. This example I took it from here, I wanted to know what I'm failing that I can not run the example, t...
asked by 22.04.2016 / 01:36
1
answer

Prevent submit to update part of a page

I have an html with the following code: function mostrar() { var x = document.getElementById('alerta'); if (x.style.display === 'none') { x.style.display = 'block'; } else { x.style.display = 'none'; } event.prev...
asked by 02.06.2018 / 21:13
4
answers

how to copy the value of the state of a component into a variable

I have an initial state with objeto item to save the character data. equal const model = this.state.item to be able to obtain the object and make modifications but it seems to create a reference and not a copy. when I modify var...
asked by 31.05.2018 / 23:23
1
answer

Save two values and two scores in localstorage

I would like to keep two names entered and their two scores in localstorage and I can only do it in one. I do not know if it's done with JSON because I'm very beginner, so excuse my inexperience. The idea is to save name1 with your score sum1 an...
asked by 31.05.2018 / 00:52
2
answers

call function from Google map InfoWindows on ionic?

I'm trying to call a function from an InfoWindows in the Google Maps API, but it shows me the following error:    (index): 1 Uncaught ReferenceError: ir is not defined       at HTMLButtonElement.onclick ((index): 1) It seems that the i...
asked by 31.05.2018 / 12:45
4
answers

Detect cursor inactivity

I need to detect that the user is not moving the cursor (mouse) with jquery so after x seconds show him a modal window. I know that the mousemove function exists but I need the opposite of this. Thanks. EDITED Is there a possibility to s...
asked by 28.02.2018 / 22:05
3
answers

How to create filter for each column of a table with jquery?

Objective - It can be in jquery or vanilla javascript I think, create dependent filters, that is. A filter B can only search filtered data by filter A. One example would be, if in column A I write c, column B can only search between d or f....
asked by 05.10.2018 / 02:28
4
answers

How to get the value of a property in an array of JSON objects?

I have an array of objects and I want to get [152,153,154,155,156,157] which are the values for the intento property of each object. I would get it by going through for , but I want to know if there is a function to make it easier....
asked by 22.11.2018 / 15:56