Questions tagged as 'javascript'

1
answer

Manipulating list element with Jquery

I would like a tip to make when clicking the list, it waves the correct question and nods wrong, or just right if the person has hit, <div class="container"> <div class="row"> <div class="col-sm-12"> <h2>Simulado...
asked by 04.10.2017 / 05:10
3
answers

How to indicate a maximum of digits in a var in JavaScript [duplicate]

I have a JavaScript code one where I'm getting a number API with enough digits after the point: 39.576911261669586 I wanted to assign that number to a variable showing only 4 digits, like this: 39.57 Thanks for your attention.     
asked by 05.10.2017 / 00:42
2
answers

JScript - Discovering the id of the previous div

Good afternoon! Home I need a help to get the value of the previous div (red DIV01 ) What command can I use to get the result ?? Home The above Div is the right parent element? Home Sorry for the ignorance. function onClick(){} #DI...
asked by 05.10.2017 / 19:57
2
answers

How to appear required in an input without form?

I wanted to make a form but not use <form> because I want to send inputs to ajax . The problem is that if you take the form, it will not be required because as you said in W3Schools    The required attribute specif...
asked by 06.10.2017 / 17:33
2
answers

What is my error in this code?

Hello, I'm starting to study the JS language and I packed it here, I do not know what my mistake, could someone explain to me what I'm doing wrong? <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title...
asked by 05.08.2017 / 03:47
1
answer

JS How to auto-fill an input with JavaScript?

Hello I need to make a button that when it clicks it automatically fills in the input fields. HTML <button type="button" id="botao">Auto</button> <input type="text" id="nome"> <input type="text" id="sobrenome">...
asked by 04.08.2017 / 02:56
2
answers

JavaScript does not execute

I have the following HTML code: function idade() { var idade = document.getElementById('idade') alert("A idade do cliente é: " + idade); } <form name="cliente"> Nome: <input type="text" name="nome" /></br>...
asked by 09.08.2017 / 05:46
1
answer

Globalize - datetime does not work with pt-BR

Please, follow code: Global.asax: protected void Application_Start() { System.Globalization.CultureInfo.DefaultThreadCurrentCulture = new System.Globalization.CultureInfo("pt-BR"); AreaRegistration.RegisterAllAreas();...
asked by 09.08.2017 / 03:46
1
answer

Minimize .JS and CSS files in bulk

I'd like to know if you know of any tool that can minify files in js and css by mass, there are several files in a main folder in hundreds of subfolders, I'm using Node.js where I have several modules in these subfolders, an...
asked by 05.08.2017 / 23:46
3
answers

Verify that the date range between two input's is less than one month and apply a condition

I have two input's one for start date and one for end date, I need to create a condition in javascript (jquery) if the interval is less than a month, eg: I'll disable a button if the interval is less than 1 month. Follow my current cod...
asked by 05.04.2017 / 18:54