Questions tagged as 'javascript'

2
answers

How do I pass this string in number to calculate in another array?

<script type="text/javascript"> var alunos = new Array(); alunos[0] = new Array(); alunos[0] [0] = "Aline dos Santos"; alunos[0] [1] = "6,5"; alunos[0] [2] = "2,9"; alunos[1] = new Array(); alunos[1] [0] = "Bianca da Silva"...
asked by 06.02.2018 / 00:12
2
answers

Attach Dropdowlist Item and a li asp.net mvc

I have a View with dropDowlist that contains data that comes from the database and right down I put a buttom that when I click it will attach the selected dropdownlist item to a list, I made a code here but it is not appending if I putting defau...
asked by 01.02.2018 / 01:42
1
answer

Select2 does not work on my pc but works on jsfidle

This code is in jsfidle, that is, it shows the stylized select and select it with an input search. <html> <head> <title>TESTE</title> <script src="https://ajax.googlea...
asked by 06.02.2018 / 02:00
2
answers

Notification in Vue

I have an application in vue js, which registers a task, I would like to be notified 5 minutes before the task happens, I have the following code. function getData(){ let data = new Date(); let dia = data.getDate(); if (dia.t...
asked by 29.01.2018 / 13:13
3
answers

Insert Tags by Console

I need to insert Tags into a site through the console. To be more specific, I want to add a TAG <iframe></iframe> . I have already tried to use document.createElement('tag') , after that add the attributes of the tag b...
asked by 29.01.2018 / 15:47
1
answer

TEXTAREA Event Resize

I want a way to get the textArea event when it is clicked on its resize arrow.     
asked by 06.02.2018 / 02:20
1
answer

Why does not this program work in Chrome?

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <fieldset><legend>Escolha</legend> <select> <optgroup label="Decimal" onclick...
asked by 26.04.2018 / 05:19
1
answer

Sums JS values

Two things. A precise sum of the 3 values, but is returning NaN. $('#valor').blur(function(){ var valor = $("input[name=valor]").val(); var descontos = $("input[name=descontos]").val(); var juros = $("input[name=juros]").val();...
asked by 25.04.2018 / 21:43
1
answer

console.log is not working

What am I doing wrong? Why is console.log not working when I enter the variable via JSP? The following error appears:    index.jsp: 1 Uncaught SyntaxError: missing) after argument list at eval (<anonymous>) at jquery-1.7.2.min.js:2...
asked by 13.12.2017 / 15:25
2
answers

How to enable or disable an input according to the option of a select html by javascript?

I want an input to start disabled and when the person selects for example a certain select option the input is enabled.     
asked by 22.01.2018 / 13:43