Questions tagged as 'jquery'

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
1
answer

How do I get the object or the value of a tr with DataTable

function excluirDadosTabela (){ $('#gridtabelaDocumentos').on('click', '.excluir', function(e){ e.preventDefault(); var teste = $('#gridtabelaDocumentos').DataTable().row($(this).parents('tr')).data(); console.log(test...
asked by 09.11.2017 / 16:36
1
answer

Confirmation before deleting record

I have a link that when clicking opens a modal asking if the user wants to delete the record. In the link I have a href that calls a route to do the deletion. How could you do to call this route only if you click the delete button? Link: &l...
asked by 08.11.2017 / 13:49
1
answer

Getting multiple values of equal inputs and storing in an array with Javascript / jQuery

I have this div, which is <div class='pergunta'> , inside it I have <input type='text'> <select></select> <input type='checkbox'> The question is that this entire div can be repeated if I click ad...
asked by 18.11.2017 / 18:50
2
answers

Problems with bootstrap grid system

My dear, I'm having a problem with the bootstrap grid system, I do not know why, but when I resize the site to the size of a device, it does not fit neatly. Any suggestion? HTML:<htmllang="pt-br"> <head> <meta charset="UTF...
asked by 18.11.2017 / 22:08
1
answer

Send variable via Jquery function

I'm learning Jquery and catching it not even a convict. I created a function in the js file like this: $(function abrir_qd1(variavel){ $(this).click(function(){ $("#quadro1").load('arquivo.php?v=' + variavel); //carrega conteudo...
asked by 22.11.2017 / 10:49
0
answers

Include two while loops in a jQuery structure for the game JokenPô

                Firstscreen-Enteringtheusername Second screen - User clicks the image corresponding to the option and then the comparison is made I want to put two loops while. The first while loop is in case there is a tie. If there is, the...
asked by 02.11.2017 / 18:57
0
answers

Close side nav by performing the page scroll function

https://pt.stackoverflow.com/posts/252168/edit# section{ height:100vh; width:100vw; } #a{ background-color:black; } #b{ background-color:red; } #c{ background-color:green; } #d{ background-color:blue; } <!DOCTYPE html>...
asked by 03.11.2017 / 15:30
0
answers

How to find out the density (PPI) of the image?

I have seen several people with the same doubt, but I have not found anything solved. If you open an image in GIMP and / or Photoshop and click Resize Image you can find out the resolution of the image and I want to do this, ie I want to figu...
asked by 03.11.2017 / 15:02