Questions tagged as 'javascript'

3
answers

Replace javascript alert

The system form I develop is full of alerts to warn the user that he can not leave that field unfilled and such. The problem is that the alerts are very annoying, and so I wanted to replace only with a color change in the input that he clicked,...
asked by 29.01.2018 / 22:49
1
answer

How to invert the side that starts the digits in an HTML input?

For example in the 'Numeral formatting' part of this site link When I type, numbers begin to be written from right to left, and the default is any input is from left to right. How do I change the input to be this way when I type?     
asked by 20.04.2018 / 22:22
1
answer

Using val () in script causes me to lose line breaks

I have a problem. I'm implementing a chat page using the following script: <script> $(document).ready(function(){ $("#enviar").click(function(){ var mensagem = $("#campodetexto").val();...
asked by 17.11.2014 / 19:01
3
answers

disable button per second with jquery

Well I'm putting together a custom button with css. I need to keep it locked for 2 seconds after the first click, but it is not working. When clicking I change the text to an icon, and after 2 seconds the text has to go back and the button has t...
asked by 28.03.2017 / 18:58
1
answer

How can I make a program that answers a mathematical formula? [closed]

I would like to put this formula in javascript: ("") / 360="" will give a comma number and I want only the first number before the comma "" x360="" now it will get the result that gave the multiplication and will do - the initial value (" Can...
asked by 02.04.2017 / 06:12
2
answers

Chaining of asynchronous requests

I need to do asynchronous serial data processing (sending data to a REST server), and only at the end of all requests do I need to perform another function. How can I control this flow if each request is asynchronous? What I need is someth...
asked by 03.09.2015 / 18:45
3
answers

How to remove an item from an array without knowing the index, just the value?

I have an array of objects and I need to delete an object from this array but I do not know what index that object occupies in the array, how can I remove that object from within the array?     
asked by 29.09.2017 / 16:54
5
answers

How to insert HTML with JavaScript?

What is the simplest way to insert HTML into an element using Javascript?     
asked by 16.06.2015 / 15:00
3
answers

Countdown - Include Month

I have a page with a countdown. Where will show the time that is missing for a certain thing. It's working perfectly. However, I would like to include one more variable. In case the month . That is, before the normal time that is shown nowadays...
asked by 27.09.2017 / 00:48
3
answers

Check if window load is false

When I give the command: $(window).load(function(){ console.log('Site totalmente carregado!'); }); It works correctly, the message in the console only appears when the window has been fully loaded.   But for example, how do I check if t...
asked by 09.10.2017 / 14:20