Questions tagged as 'javascript'

2
answers

Increase by 2 when activating function

Hello, I am a beginner in javascript and would like to know how to block the item, when var total reaches that value equal to that of the item, ex: 200, increase by 2 not 2 by 1. var total = 1; function clickAumento () { document.getEl...
asked by 16.05.2018 / 16:14
1
answer

How to do sum in javascript

Within a function I entered this code and for some reason it is not adding up. var total = (currentUser.profile.hp + currentUser.profile.attack + currentUser.profile.luck) / 3; multiplication works perfectly with the '*' character     
asked by 16.05.2018 / 18:47
1
answer

Validation if any form input was changed

I need to check if the form has changed, ie if some input data has changed, etc. So that when you do submit , or leave the page, make some button click, or the menu is informed to the user that the data has been changed, and that have not...
asked by 24.09.2018 / 16:47
1
answer

Help with the onchange function

I'm trying to use the onchange function, until I get the value, but I can not make use of the value, Select and script: <select id="mySelect" onchange="myFunction()"> <option value="1">1 Questão <option value="2">...
asked by 24.09.2018 / 21:10
1
answer

Image does not cover the entire screen?

I'm developing a banner plus it's not covering the entire screen like the image below it, the banner gets a few white parts around it. Note: In this same banner I'm trying to make the parallax effect, and it's not working if someone can give...
asked by 21.09.2018 / 22:00
2
answers

Background image is not replicated on other pages when using onChange function

I am trying to select a background image according to the selected option in a onChange function, but it happens that it (the image) is only applied on the first page if I NÃO use the function onChange to the address of th...
asked by 25.09.2018 / 04:46
3
answers

Override native HTML scroll

The alert event of javascript has an interesting effect, when it comes into activity, a modal appears, not hiding or disabling, but overlapping the native scroll of the HTML. How can we accomplish this same effect manually? function myFunc...
asked by 30.04.2018 / 21:12
2
answers

How to detect a certain sequence of numbers in javascript?

In the address book field, I have the zip field. In this field cep, I need to do some validations: 1 - Do not allow the user to enter a sequence with two numbers alternating with each other: EX 1: "12121212" EX 2: "12312312" 2 - Do not a...
asked by 02.05.2018 / 14:01
2
answers

Post Angular Method

Hello, I'm developing an application using BackEnd as ASP.NET C #, and with Front Angular5! I'm doing a post method for the first time and it's not flowing well! In the BackEnd I have a method as follows: [HttpPost, Route("api/usuario/no...
asked by 19.04.2018 / 07:19
1
answer

How to change text in an html table according to the result

I'm doing a table in html and wanted to change all the texts according to a result. Eg: If the table says 1 means it is in use, then make the change and replace the number 1 and put it to use, and if it is set to 0 it becomes available. Th...
asked by 17.04.2018 / 21:55