Questions tagged as 'jquery'

3
answers

submit a form with jQuery by clicking a button outside the form

I would like to send a form without clicking the submit button, using the click event of jQuery, I tried that way but did not succeed: $(document).ready(function() { $('.item').click(function() { var id = $(this).attr...
asked by 22.11.2016 / 19:39
2
answers

How to create a shortcut inside a page?

To add a new item to my database there is the Add button, however I would like to add a shortcut to it that performs the same function as the button. For example, when E is clicked on any question in the OS, it goes into edit mode. In my...
asked by 22.01.2017 / 15:34
2
answers

Ajax / JQuery - How do I know if a request has been completed?

I have a simple ajax like this: function ajax() { $.ajax({ url: "../../api/utilitarios/cidades/estado", method: 'POST', dataType: 'json', success: function (data) { }, error: function (data)...
asked by 16.08.2016 / 21:37
1
answer

Anonymous jQuery function passing parameters to call it

Is it possible to pass parameters in a jQuery function so that I can use it multiple times with multiple elements? I need to leave it with indeterminate elements and pass them as parameters by determining them when calling the function, just as...
asked by 24.12.2016 / 14:05
4
answers

use f2 to click button with jquery

I have the following button on my site: <button onclick='document.location="google.com.br"'>FINALIZAR</button> How do I get it to click when I press f2? I wanted to do this using jquery. Can anyone help me?     
asked by 29.11.2016 / 19:30
2
answers

Check if HTML is visually filled

I have this div: <div class="listagem-usuarios"> //Aqui eu deixo vazio e insiro algo quando necessário através do append </div> I would like to check if there is nothing inside this div. I did so: if($('.listagem-usuari...
asked by 26.12.2018 / 16:45
2
answers

Execute this function from a button

As you can see in the example below, when the links are clicked a div appears and when you click the browser's back button, it hides. I would like that by clicking the "close" button inside the open page, you can also hide it. I need to reprod...
asked by 12.12.2018 / 17:51
1
answer

Round values up jQuery

I have the following jQuery: $(".quantidade_lotes").change(function() { var quantidade_linhas = $("#quantidade_linhas").val(); var quantidade_lotes = $(".quantidade_lotes").val(); var quantidade_dividida = (quantidade_linhas/quanti...
asked by 26.10.2016 / 18:11
2
answers

How does alert show when checking checkbox in a table?

I have a table: Theinformationshownissearchedinthebank,andonthesideofthecolumn(inthisexample)-Salary-willhaveacolumncalledLock/Unlock-whereIcanlockthatinformationinthebankfrom0to1)andsobeforethename-exampleAshtonCoxwillhaveagreeniconthatmean...
asked by 14.06.2016 / 17:21
2
answers

How do I select only one element with a class that exists in other elements?

I'm in a situation where I have three elements on one page. <img class="imagem" /> <img class="imagem" /> <img class="imagem" /> I would like to select the second element of these 3 classes. How can I do this via jquery?...
asked by 14.03.2016 / 15:43