Questions tagged as 'jquery'

1
answer

JQGrid double click does not work on Mobile

I have a JqGrid that works perfectly in the browsers of the computer, however when I open the cell phone, the double click function stops working. $table.jqGrid({ url: '/Representantes/ConsultaEntrega/lista', datatype...
asked by 30.05.2018 / 18:45
1
answer

Create dynamic associative array inside loop

I'm having trouble trying to create a dynamic associative array inside a loop, the error returned in the console is Cannot read property 'push' of undefined , the idea is of a sports quiz with 3 questions for each team, I'm using the "d...
asked by 03.06.2018 / 07:22
1
answer

How to change the value of a custom attribute?

I want to change the value of a custom attr via jquery, but without success. Here is the code below: $("#botao-01").click(function() { $("#img-screen").attr("data-image","img/bauru-02.jpg"); }); <div id="img-screen" class="tile"...
asked by 03.04.2018 / 14:58
1
answer

How do I get a single div with the same class in jquery?

How can I use the click function in jquery with classes of the same name? Type click and appear element only in the clicked div and not in the others. I've already tried using $(this).next('bla').addClass('blablabla') and I was not suc...
asked by 01.04.2018 / 06:36
2
answers

When you click Select All, all checkboxes are checked

I have the following form where the user can mark all the clients at once: WhenIclickSelectAll,itworkscorrectly,butwhenIuncheckoneoftheoptions,theSelectAllcheckboxisstillchecked,andwhenIuncheckSelectAllandIselectitagain,thecheckboxthatIprevi...
asked by 03.04.2018 / 02:14
2
answers

How to apply two validations at the same time?

I'm trying to create a simple validation of two fields, where I only check if there is a value or not, but the second if only runs after passing the first one. I wanted the two to be fired at the same time, what would be the most practical wa...
asked by 27.03.2018 / 14:34
1
answer

Format sum result with comma - Jquery

I'm making a sum of all values for a column in a table. Returning par to html, is being returned without the comma. How can I make the comma appear in the second house? var valor_recibo = 0; $(".valor_recibo").each(function() {...
asked by 12.06.2018 / 02:49
1
answer

Get values from a json / object

I have the following json: And2selects,oneforstateandoneforcity,Ialreadyfilledthestatecorrectlyusingthisjson://comboboxestados$.getJSON('http://api.doupenglish.com.br/unidades',function(unidades){varselectestado=$("#selectestado"); v...
asked by 09.03.2018 / 00:58
2
answers

Display rows of a table according to filters

I have the code below where I have a onchange that should filter the status of each request (hiding / showing table rows), however it is hiding the header of table . Code: <!DOCTYPE html> <html> <head>...
asked by 16.04.2018 / 14:41
1
answer

Insert field in table and compare if already exists, with JQuery

Good morning! I'm inserting products into a table with JQuery, similar to a shopping cart, and need to compare if the product has not been inserted before. I tried with the code below, but this is giving problems when comparing with the array, W...
asked by 17.04.2018 / 16:01