Questions tagged as 'javascript'

1
answer

Error doing Javascript sum

I have a calculation script that I adapted from another page. There, all right, but in that, even conferring the same ids and the like, does not work. I took the essentials of the screen, to demonstrate what I have done so far. $(".real")....
asked by 28.02.2018 / 14:22
2
answers

SetTimeout not working, what's wrong?

I need this window to open after 3 seconds, but I can not do that by putting the setTimeout right on the button. Whats wrong? : <script type="text/javascript"> function openWin() { var divText = document.getElementById("div-janela")....
asked by 28.02.2018 / 16:41
4
answers

Change button link according to option

Have a good afternoon. How do I make a function in javascript to get the value of the input and according to the input redirect to the link I want. Turma 1 - Option 1 Turma 2 - Option 2 Link turma1 ex: google.com.br Link turma2 ex: yahoo.c...
asked by 27.02.2018 / 15:46
1
answer

Mask for CPF or CNPJ without using plugins

I managed to make simple masks for phone fields, zip codes, etc., etc. But I wanted a mask to automatically detect and format a field for CPF or CNPJ in the same input, but that was preferably pure html / javascript, with no plugins at most usin...
asked by 22.02.2018 / 19:11
1
answer

JQuery code presents different result depending on browser

I'm using a <input type="datetime-local"> but unfortunately does not work in Mozilla. So I thought I'd implement something to mask this problem, but for that I need to run a specific code for Mozilla. My project uses Jquer...
asked by 04.05.2018 / 16:38
2
answers

Problem with JS / PHP [closed]

Good afternoon guys, I'm trying to make a chat to my intranet and the problem is as follows, my code in JS is not capturing the echo return from PHP, so the function does not delete the text that the person writes in the chat after the enter...
asked by 03.05.2018 / 21:19
5
answers

Event when you press the button

Would there be any way to detect the tap at the push of a button? The code works fine on the desktop , but when I test in mobile does not fire. Using JqueryMobile is not an option. var timeout = 0; $('button').mousedown(function...
asked by 04.05.2018 / 03:04
1
answer

Update images without the need to update the entire site

I am using a javascript code that updates the speaker's picture according to the day of the week and the time it is on the air. However this only happens when the page is updated (F5). Would you like to know what I need to add in the code to upd...
asked by 10.02.2018 / 19:41
1
answer

Run form when you click a browser button

I have a form with an input file, and what I want to do is the following. WhenIchooseafileandhit"OPEN", I need to submit my form by clicking "OPEN".    My form. <form class="form5" method="POST" enctype="multipart/form-data">...
asked by 11.03.2018 / 16:38
2
answers

Take only the days of the month by removing Saturday and Sunday with JAVASCRIPT / TYPESCRIPT

How can I add only the days of the month in an array by removing Saturday and Sunday? user will inform the month and year and with this month I will get the days. ex: March 2018 1 2 5 6 7 8 9 12 13 14 15 16 19 20 21 22 23 26 27 28 29...
asked by 09.03.2018 / 22:47