Questions tagged as 'javascript'

2
answers

Mask field Percentage and money using only number?

I have a html page made for mobile, I would like to put 2 types of masks being% Percentage and R $ Money but I need this field to be type="number" to show the numeric keypad of the cell phone . I already downloaded several masks and none could...
asked by 28.03.2016 / 23:19
1
answer

2 functions in javascript in same div

I have divs in my code in html (they are 3 menu bars), when I click, it transforms (as if it were an animation) into an x, however, I want it when it changes and I click it function other than the first. An "openNav ()" in the first and a "close...
asked by 19.05.2016 / 20:01
1
answer

error with function in javascript

I have people and the following code in javascript: <script> $('.valores,#qtd,#qtd_bo').mask('00.000.000,00', { reverse: true }); </script> It's a mascara plugin, and it works perfectly. But my phpStorm is setting $ t...
asked by 19.05.2016 / 19:08
2
answers

Timing with setInterval in JS

I'm trying to make a timer, until it's working, the problem is that it only slows down if I click, and I need it to go away once I click once. var mins = "30"; var secs = "00"; function timeCount(){ if (secs == "00"){ s...
asked by 21.05.2016 / 04:59
1
answer

How to get element by id inside a block returned by getElementById ()

Next ... I want to find an element (form) that is inside a block. I use .getElementById(); to get this block. After getting the block, I want to find the form that is in this block so that I can include an element before that form....
asked by 22.03.2016 / 22:04
1
answer

Redirect with javascript

I need to redirect when the modal bootstrap loses focus. In my code the modal does not even open because it does the redirection coming out of the screen. I need something more or less like the alert (). As soon as I click on ok or lose focus...
asked by 22.03.2016 / 21:00
2
answers

Get radio button value via jQuery and set to an input text

Good evening, I'm with a RadioGroup that gives me three values: PM - Less Weight (The lower weight between the Outgoing Weight and Arrival Weight); PS - Output Weight; PC - Arrival Weight; The system must take the value of the PptMotorista...
asked by 22.03.2016 / 00:17
1
answer

Save selected colors even by going to another page

Any idea how I can have 2 (options) arrays with styles to change the colors in specific places of the site (for example change 3 classes: .header, .footer, .sidebar), but keep the option in which the user clicked even when he went to another pag...
asked by 06.05.2016 / 21:54
3
answers

Do not concatenate or If

Well, you can help me ... I'm learning to make a clock with JavaScript ... But if to concatenate 0 in front of seconds, minutes and hours is not working ... I can not find the error ... var tempo=new Date(); var hora=tempo.getHours(...
asked by 05.05.2016 / 00:30
1
answer

Problem with Creation and location of module by AngularJS

Look at the code; <!DOCTYPE html ng-app="helloWword"> <html> <head> <title>Ola Mundo</title> <script src="angular.js"></script> <script> angular.module("helloWword", []);...
asked by 15.05.2016 / 12:00