Questions tagged as 'jquery'

2
answers

Enable and disable function in jquery

I need to disable a function in jquery, for example, when I click on a div, a function that I set will no longer be executed, just when I click on another div it works again. The function loads when the site loads. I need when I click on a div t...
asked by 12.01.2016 / 17:57
1
answer

FOR with getJSON file URL

I need to make a FOR with getJSON file. How is the form correct? selectOcorrencias = $.getJSON("http://izicondominios.com.br/appOperacoes.php?operacao=selectOcorrencias&condominioID=2"); for (seOcor in selectOcorrencias){...
asked by 20.12.2015 / 21:40
1
answer

Get values from the columns of a table and save the value of each column in an input

I have a table with 2 columns and I would like, when I click on any row, assign the values of each column of this row clicked on a <input type="text" /> . I have a code that it assigns however if I click on the first column it assign...
asked by 17.12.2015 / 13:34
2
answers

Change "src" attribute with fadeIn effect

I need to change the src attribute of an image with jquery. Everything works perfectly, I only need to apply an effect that I can not put. I do not know if the way I did it is the exact way to get the result I want. html <img id="slide"...
asked by 15.12.2015 / 15:35
1
answer

Ajax does not return to view using find ()

Hello, I'm creating an ajax but if I use find to return in the desired div it does not return success: function (ret) { if (ret == "sucesso") { $(this).find(".msg-envio").html("<p class='msg-sucesso'>Orçamento...
asked by 05.01.2016 / 18:24
1
answer

Access Pseudo Elements :: after and :: before and Others

Is it possible to access a ::after element created in CSS with jQuery ? For example: ul.pager{ position: relative; width: 100%; text-align: right; max-width: 960px; z-index: 30; margin: auto; margin-top...
asked by 14.12.2015 / 17:41
2
answers

Adding and removing JQuery class

I have a toggle effect that opens and closes a div, and in that effect I put it to add a class and remove it. It adds the class, but is not removing it. Because? JQuery $j('.filters__filter.tamanho').click(function(){ $j('.filters__filt...
asked by 24.04.2017 / 19:45
2
answers

Calculate percentage of total HTML columns with Jquery

I have a table that is automatically generated by PHP and manipulated by jquery, but I need to calculate the percentage of the total of each of the number lines, what is the best way to do this? <div id="tableResults" class="container"&...
asked by 25.04.2017 / 16:23
1
answer

How to pass ID via JavaScript to a View

In the application I'm developing I use Views of type modal . I use this code to display the modal : <button class="btn btn-default details" data-id="@clientes.Codigo"><i class="glyphicon glyphicon-file"></i></button&g...
asked by 15.10.2015 / 02:35
1
answer

Abort an Ajax request

In a situation where I use ASP.NET MVC , can you cancel a AJAX request depending on the response of a modal? I'm doing something like this: function atualizaStatus(sel, id) { var $status = sel.value; var $idAluno = id;...
asked by 20.01.2016 / 14:02