Questions tagged as 'javascript'

2
answers

Change table TD according to received value

I need the background of my TD to change according to the value it receives from the ListView coming from a query. <scripttype="text/javascript" > $(function () { var texto = $("#ListaSchedulesRdc td:nth-chi...
asked by 08.12.2017 / 19:42
1
answer

calculate values of inputs with the same class

I need to do a real-time calculation with divs with the same class inserting the result into another one. The code which I am trying to develop is at the link below var qtde_inputs = $('.quant').value; var soma_inputs = 0; $('.quant...
asked by 08.12.2017 / 13:16
0
answers

Select2 does not work after cloning the entire section

After cloning an entire section, select with select2 no longer works. I already tried to use the destroy to later use select2 in JS but it does not work. Can someone help me? It would be of great value. Thank you. The element I've cloned is...
asked by 10.11.2017 / 14:47
0
answers

Problems with drawing multiple meshes WebGL

I'm doing a magic cube using WebGL 2, so far so good, I've done some classes to do matrix accounts, some to take care of shaders, and so on. But when I was drawing the cube in fact it just uses the texture of the last cube that is drawn on the s...
asked by 10.11.2017 / 01:42
2
answers

How do I find the character '[' in a string with JavaScript?

I have the string "Package sem arquivo [ 11/7/2017 10:16:32 AM ]" and wanted to find the character [ and know its position. var indRem = pkgName.search('/[/'); I tried this way and it did not roll, can you help me?     
asked by 10.11.2017 / 14:12
1
answer

Place div child of ul ul element occupying 100% of page width

The problem is this: I have a div that is the daughter of a li element of an ul that does not start in the corner of the page. There are two subproblems: 1 - I need to be able to expand this div so that it fills the entire width of the page w...
asked by 10.11.2017 / 00:03
1
answer

Error trying to insert data into Mysql database [duplicate]

I'm trying to insert data from a promotion into the MySQL database via a REST Web Service in Java, but when trying to insert me returns the following error: Grave: ERRO ao Inserir Promocao - com.mysql.jdbc.exceptions.jdbc4.MySQLIntegri...
asked by 10.11.2017 / 03:36
1
answer

Returning NaN to function

Hello, I have a form with a radio button, if "Input" is chosen, the form corresponding to the name "Value Output" is disabled and vice versa. I have a function that calculates the sum of the value of the input and output of an element and return...
asked by 17.11.2017 / 19:35
1
answer

Submit sending multiple times

I have a form where I check if the checkboxes are selected before submitting the Submit, however when the return is false (no checkbox is selected), after selecting the checkbox and clicking the submit button, the Form is sent more than 1 turn....
asked by 09.11.2017 / 15:20
0
answers

Save data to a file and retrieve it with jquery

I want to simulate a blog article and save a comment purely by Javascript so I have 3 files to accomplish this task: $("#enviar-comentario").click(function(){ var nome = $("#nome").val(); var mensagem = $("#mensagem").val();...
asked by 09.11.2017 / 20:18