Questions tagged as 'javascript'

2
answers

Filtered data inside the combo

Hello I have two combos, another category category! both are already populated with database values! I would like that when selecting category, the category type combo only list the category type values of the selected category without using...
asked by 22.01.2018 / 14:05
1
answer

Pass function through two way data bind

I wanted to know if it is possible to pass a function through the two way data bind of the angle. I'll try to explain, I have a 3-button component and would like to use them in several parts of my project. I wanted to pass the functions to the...
asked by 19.01.2018 / 17:23
1
answer

Combinatorial Analysis - Generate n! arrangements

I need an algorithm that manages all possible arrangements for n elements in n positions, that is, n! is the amount of possible arrangements, as in the example below: n = 3 3! = 6 arranjos 123 132 213 231 312 321 I'm trying to create...
asked by 22.01.2018 / 16:55
1
answer

Two arrays in foreach js

I have a function in JavaScript that sends requests with the contents of the lines of a textarea , is a looping that runs through an array and sends the requests with the data of these indexes of the array, the problem is that I need to cr...
asked by 23.01.2018 / 04:41
1
answer

Save the form so that when it returns an error it does not delete the inputs

I am doing a registration system, when the data is correct it saves the bank in a good, when it gives error it returns where it is wrong but it erases everything that was filled or is not viable what I want is that when the user tries to registe...
asked by 29.12.2017 / 15:20
1
answer

How to use Methods from an Extends Class?

   I have two classes: A and B       Class B looks like this: B extends A       I need to use some methods that has within Class   A ,    in class B . How do I do it? class NeorisMapBi { constructor(mapID, mapOBJ){...
asked by 19.01.2018 / 05:08
1
answer

Only accept specific numbers in an input

I have the following input: Conta Despesa: <input type="number" name="cod_reduzido"> But it should accept only specific numbers (there are 30 numbers that are not in sequence, such as: 3111, 3113, 3130, etc.)     
asked by 26.12.2017 / 17:39
1
answer

Generate options from a select (years) according to another selected field

I have a form to register dependents of a plan, where you can choose child, husband, father-in-law, etc. and then the year of birth I want you to select the type of relationship by changing the select options, eg Selecionar filho: Máximo an...
asked by 11.12.2017 / 13:10
1
answer

Is it possible to use addEventListner in this way?

I'm studying javascript and decided to play around with the creation of fields with DOM CORE . This is the code I've done so far: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name=...
asked by 11.12.2017 / 01:40
2
answers

Populate select cities according to status

Hello, I would like that when the user selects a state, the select is populated with the cities of that state so the user can select yours. I found a way to do where you do the registration of cities in the database, would you have some way to d...
asked by 11.12.2017 / 13:26