Questions tagged as 'javascript'

2
answers

How to make a JavaScript mask for the type tel?

Well, I've created a form and a field for the user to fill in the phone. That is: field type="tel". What I want is a JavaScript code that, when the user inserts the phone, the code will automatically transform the phone to this format (xx) xxxx-...
asked by 28.04.2018 / 13:02
2
answers

Automatic Reload without being precise

I have a question! I have a voting system, which has a page that shows the live results of the vote, this page uses to show the charts and Google Charts background has an ajax code that runs every 1 second, which is always going to the file .xml...
asked by 25.04.2018 / 21:43
2
answers

Display default date field BR aaaammdd for dd / mm / yyyy with javascript

Hello I have a field that automatically gets a date from another system, but it sends me in American standard, I would like to display on the screen with the default dd / mm / yyyy; <div class="form-group col-md-2"> <...
asked by 11.05.2018 / 15:10
2
answers

Select checkbox when putting value in a text box

I want to automatically select the <input type="number" /> when putting a value in <input type='checkbox' /> . Follow my HTML: <div> <input type='checkbox' name='arrachar[$year, $month, $day][OpcaoA]'...
asked by 18.05.2018 / 15:59
3
answers

Click the button and change the background color

Good afternoon, I'm developing 1 game in Meteor, and for example when I click to choose the character wanted the background turns green, and if you choose another character the background would return to normal and the new selected character wou...
asked by 16.05.2018 / 18:16
1
answer

How to Identify Screen Capture

How do I identify if a screenshot is taking place on the site. For example, when Netflix is watching a movie or series and trying to get a print, it causes the print result to go completely black. How can she identify the act of taking a p...
asked by 14.05.2018 / 15:53
3
answers

javascript function 1 expect return from function 2 (sync await promise.all)

Hello! I have a very big question regarding the use of sync / await and tbm of Promise.all. I have the following code: class Conexao { constructor(loading) { this.loading = loading; } acessar(rota) { return this.requisicao(rota, 1);...
asked by 18.05.2018 / 16:34
1
answer

Label concatenating subsequent results, how to clear the previous result?

Explanation I have two label elements that receive the results of an account made inside the code (lamp expenditure calculator), when I click on calculate, it calculates and inserts the calculation result in the label, when I click calculate...
asked by 18.12.2017 / 14:20
2
answers

How do I activate a div with JavaScript?

I have the following problem I have a <div> hidden over the login field: <div id="MostraLegenda" class ="legenda" style ="display: none"> <p>Login do Usuario</p> </div> It has display: none , I...
asked by 13.12.2017 / 13:34
3
answers

Calculation between two inputs and result in another

The script below works only for the first block when you enter the quantity. There is some way for the function to perform the calculation depending on the block in which the quantity is entered. $(document).ready(function() { $('.so...
asked by 26.12.2017 / 13:46