Questions tagged as 'jquery'

1
answer

Jquery Dropdown, stop spread with right click

I'm using Jquery DropDown: link In the project issue, there is a code that prevents the menu from closing when clicking as the left button, I would like it not to just close with the right click. In the example below, when clicking inside a...
asked by 15.02.2018 / 15:07
1
answer

Doubt handling js values

I have the following inputs in the html: COD_01 VALOR_01 COD_02 VALOR_02 e asim por diante até.... COD_99 VALOR_99 The user will feed each COD and VALUE. I need to create a js for: 1- Somar todos os Valores, por COD. 2- Pre...
asked by 01.02.2018 / 19:18
2
answers

Call function after opening Modal

I have this Jquery code: <script> jQuery(document).ready(function(){ // Numero de click var totalClicks = 0; jQuery('#addpayment').submit(function(){ var dados = jQuery( this ).serialize(); // Verifica se o valor da variável...
asked by 06.03.2018 / 17:28
1
answer

How to make an each inside an append?

I am trying to create a Jquery plugin but I can not adapt a .each inside a .append, how can I use it to work inside .append? Here is my example below: var selectBox = $('.select__atual'); var selectOption = $('.select__opcoes__label');...
asked by 26.02.2018 / 15:37
1
answer

How to concatenate a javascript object to a post form?

I have an object JSON that I built at runtime, I need it to be sent to my servlet , along with the other form fields, via post, how do I do this? I researched a lot but nothing worked. function createJSON() { layoutColunas =...
asked by 08.02.2018 / 16:51
2
answers

Return from select brings previous value - jQuery

I have a table #table and I would like every time I make a filter by select it adds the amount that is in column 6 eq (5) . With the code below it is running, however it displays the previous value that I select. For example, you are displayi...
asked by 30.01.2018 / 00:14
1
answer

How to enable a button, only when you accept the terms

Well, I'm doing a virtual product shopping site, and I need my clients to accept the "Term of Use". The method I used was this <input name="ck_permissao" type="checkbox" id="ck_permissao" value="checkbox" onclick="return confere()" />&l...
asked by 30.01.2018 / 04:53
1
answer

Ajax returning undefined

I placed an else in my function in php and it is falling on the else, but I have parameters to get from the url. I have the following code in php: $utm_source = $_REQUEST['utm_source']; $utm_campaign = $_REQUEST['utm_campaign']; $utm_medium...
asked by 31.01.2018 / 12:48
1
answer

Checkbox does not load data returned in json

I'm having trouble loading a checkbox ( <select> ) using C# MVC with Json . The method returns the complete list with objects, but does not load in the select box. My controller: public ActionResult SelecionarRep...
asked by 13.03.2018 / 18:40
1
answer

Separate Checkbox values [duplicate]

Good afternoon, I have a checkbox set that has 3 blue and 2 red selections. The priority selection is red, that is, if I take a red one even though I have not selected all the blues, the next one should be red. My problem is being to present t...
asked by 15.03.2018 / 16:23