Questions tagged as 'jquery'

2
answers

How to insert DIV with input fields inside the DIV using jquery or javascript

I have a simple form with add button that when I click it it adds 3 text inputs: <form method="POST"> <div id="ingredientes"> </div> <button type="button" id="adicionar">Adicionar</button> <button type=...
asked by 10.09.2018 / 20:37
2
answers

Prevent multiple submissions with jquery

I have a table with several users, each line has a Button to delete that particular record, I have the following code: $('body').on('click', 'button[name="btn-delete[]"]', function (e) { e.preventDefault(); var action = $(this)...
asked by 10.09.2018 / 15:26
2
answers

Stopwatch using JavaScript

I have the following code, the timer works, but when it comes to the end it shows END and restarts. I wanted him to stop at FIM. var tempo = new Number(); // Tempo em segundos tempo = 10; function startCountdown(){ // Se o tempo não for zera...
asked by 15.10.2018 / 05:00
2
answers

Javascript Error - DataTables

Hello, I have a code that works in dataTables on a page, so I took the template and the only changes I made was renaming the js , renaming the function $ () The rest left the same in the case the structure, I only know the basics of js and came...
asked by 16.10.2018 / 14:30
1
answer

Filter jquery list with checkbox

I have this function that does the filtering of a table, according to the selected field selected and what was typed in the input, and it works. function myFunction2() { var input, filter, table, tr, td, i, filtro; input = document.getEl...
asked by 16.10.2018 / 14:18
1
answer

linked datepicker with Jquery

I have a form with a date period ('Start date' and 'End date'). The start date can not be less than the end date and the end date can not be less than the start date. These inputs are using the datequicker of the JQuery UI (JQueryUI 1.11.0 and J...
asked by 03.09.2018 / 20:27
3
answers

scrollTop in FullScrenn jQuery

On screen in normal mode use at the click of a button the targeting of the screen to a div at the top: $('html,body').animate({scrollTop:$('.backTop').offset().top}, 150); But, having the screen in full screen how to make this funct...
asked by 04.09.2018 / 03:19
1
answer

JavaScript Clock increase for game

I am creating a team in JS to count the time the user will take to complete the task. I am using setInterval() to run the team but I am not able to increment to more than (1) the value of min() . This is my code: const time = {...
asked by 31.08.2018 / 23:02
1
answer

Simple search FIREBASE

I'm testing on firebase and I'm having trouble recovering bank data with JS. The table structure is as follows: Scores - key - name - points - key - name - points What I want is to return the s...
asked by 05.09.2018 / 18:58
1
answer

Create a selected jquery option

I have seen several posts about this, but none have been able to help me definitively. I'm trying to put a dynamically selected option (db data). obj.nome = [vitor,joao,carlos] dep_option += '<option name ='+obj.nome+'>'+obj.nome+'...
asked by 25.08.2018 / 18:43