Questions tagged as 'javascript'

1
answer

Create a sequence from fields

Hello, I would like to add the values of the fields and add 1 according to the last value entered in the input, Example: withjavascript <!doctype html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstr...
asked by 14.05.2018 / 22:33
1
answer

Make the Average in Javascript

I have a table that per line is performing a calculation and putting the result in the results column. The goal is that now at the end in three cubes appear averages depending on the results obtained and do not know how to call those results....
asked by 28.05.2018 / 13:18
2
answers

How to understand the MVC architecture in Angular 4?

Hello everyone, this is my first question and it's about Angular 4 . So I studied the Angular Js 1.x and I could fully understand where the MVC architecture fits into the framework , but did not feel the same in < in> Angular 4 . I know, t...
asked by 29.05.2018 / 19:45
2
answers

My function that returns a boolean true / false if it exists or not, is it correct?

I'm doing some js exercises and would like to know if my function is correct! 1) Write a function that checks whether the passed skill vector has the "Javascript" ability and returns a true / false Boolean if it exists or not. function...
asked by 29.05.2018 / 00:59
1
answer

How do I do when clicking outside a div it closes?

Good Night, well I'm doing some tests and I came across this problem, I'm a beginner in Js, and I was able to make the div appear when I clicked on the "div" button, and I tried to make it disappear when clicking on the body, it worked out howev...
asked by 30.05.2018 / 04:02
2
answers

What is the difference between HTMLCollection, NodeList and Object?

Sometimes I end up needing to manipulate a NodeList , others an Object but I do not understand exactly what the difference between them is. And what is the relationship of DOM with them?     
asked by 04.06.2018 / 19:27
2
answers

Changing the color of a cell in a table depending on the status [duplicate]

I wanted to change the color of a table cell depending on the value entered by the user. For example A = green, B = blue, C = black, I was able to make the code change the color of the table, but I can not do the user changes the color....
asked by 04.06.2018 / 13:49
1
answer

How do I pass the value of the Tumb variable to my controler?

How do I pass the value of the Thumb variable to my control? The two input fields then passing normally, however the tumb variable has to pass the Image Url of the video. Controller [HttpPost] [ValidateAntiForgeryToken] public ActionR...
asked by 19.09.2018 / 21:06
1
answer

Information goes beyond the place of display

I have 2 rectangles on the screen that serve to display data within them. But when you have a lot of information the data goes beyond its size. I want to make sure that the data does not go over it, and by hovering over the information the in...
asked by 19.09.2018 / 14:30
2
answers

Is it possible to return the Javascript result in HTML only with Javascript?

How can I return the result of this code in HTML: The main function of the code is at the end of the code ... //estrutura do problema. var problem = { init_state:"III", end_state:"VIII", action: [ ["I",1,280],["II",2,280],[...
asked by 19.09.2018 / 15:16