Most voted "jquery" questions
jQuery is a Javascript library focused primarily on DOM handling, event management and Ajax, seeking to free developers from directly dealing with a number of browser compatibility issues.
Learn more…11,371 questions
Sort by count of
-
2
votes2
answers1166
viewsArray to store input values that are inside a li
I’m having trouble making an array in jquery with "each" to save the input values contained within a list, in the following format: Note: In the list of questions, each question has a sublist with…
-
2
votes2
answers128
viewsI can’t get the value of a child element
I’m filling a table as follows: $.ajax({ method: "GET", url: "https://api.github.com/search/users", data: { q: search, sort: "repositories" } }) .done(function( msg ) { jQuery.each(msg.items,…
-
2
votes1
answer1044
viewsUncaught Typeerror when using Jquery Mask Plugin
I received "Uncaught Typeerror" while using jQuery’s "Mask" function Mask Plugin. Here are my includes in the archive editar_usuario.php. <script type="text/javascript" src="<?php echo…
-
2
votes1
answer377
viewsPaging without php and mysql
I’m trying to make a simple pagination, just click on the "2" button for example and it happens. I tried to use this, but I couldn’t: https://esimakin.github.io/twbs-pagination/ Could anyone help me…
-
2
votes1
answer47
viewsHow to apply the Hover (Jquery) effect to a specific group of classes?
I’m creating a web page that would be something like a store. The idea of this code is that, by giving it to the div. lojaprodutos, appear two other Divs (one on the right and one below), and this…
-
2
votes1
answer1113
viewsWorking with the return result of an ajax request with jquery
I wonder if it is possible to compare a value returned from an Ajax function with an external variable using jquery. When I try to make the comparison I realize that the external variable is not…
-
2
votes2
answers3896
viewsCancel sending jQuery form
Good afternoon, I have a form and I want that when the button submit be clicked it does not reload the page for the post submission put the return false; in function submit of jQuery but it did not…
-
2
votes1
answer2640
viewsRun Ajax by passing credential information in Header
I need to make an ajax call by passing in Header the following information: Content-Type:application/json Cookie:authToken=valueXPTO (This information above I got from Postman) I need to do the same…
-
2
votes1
answer76
viewsCheckbox gets bugged MARK ALL -WITHDRAW SELECTION -Special case;
Hello guys my goal is to mark and uncheck checkboxs until then all right look at print: I press to select all and the script selects ALL I click to uncheck it unchecks ALL until then all right. The…
-
2
votes1
answer131
viewsSmooth scrolling in div content
I have a script that scrolls smoothly when clicking on the anchor link. The problem is that it scrolls the entire page. I need him to scroll only the contents inside a div specific and the rest of…
-
2
votes0
answers557
viewsChange HTML data attribute with Jquery
I have an input that would like to change the date-min and data-max with the value brought by AJAX by changing the value of select category_id. Ajax is bringing the value correctly, but does not…
-
2
votes1
answer433
viewsPrint in A3 and A4 format
I need to develop something that can print in A3 and A4 formats, exactly the same as this site: http://mapas.fortaleza.ce.gov.br Note that by clicking on the print icon first it resizes in the…
-
2
votes2
answers114
viewsSelecting a Specific Value in Jquery Array
Hello, good morning, good morning! I am beginner in the area and would like to (if possible) help to resolve an issue. The user will have a field to select the cities, when selecting, the system…
-
2
votes2
answers172
viewsWhat is the difference between $('#id') and Document.querySelector('#id')?
Aren’t you supposed to get the same result using one method or the other? I would add one Listener oncick and only using the second method could he effectively declare Event Listener. Why? var…
-
2
votes2
answers1446
viewsmaskMoney does not work on input within table
Here I call the mask wearing class $(function($){ $(".dinheiro").maskMoney(); }); in form inputs works normal, but in table does not work. function addProd(obj) { $('#add_prod').val(''); var id =…
-
2
votes1
answer2040
viewsHow to add Jquery to Electron?
I’m web developer, I’ve tried methods in an English post, but... none works, I want to add Jquery in the electon. I’ve used this one without window.$ doesn’t work. <script…
-
2
votes1
answer50
viewsEach always returns the last term of a JQUERY table
I have the following code running through a table that contains data, but I don’t know why it always returns the last item when I select an object. It does not return the other items. Code:…
-
2
votes4
answers253
viewsmaxlength in coin mask
I’m wearing this coin mask, it works until well put a maxlength in the input it does not limit the amount of numbers. <script language="javascript"> function MascaraMoeda(objTextBox,…
-
2
votes1
answer88
viewsJavascript function duplicating data when dynamically loaded
I have a function called calculator to which the page is dynamically loaded several times (whenever the user calls the calculator page). When you first load it is normal, but the more you load the…
-
2
votes1
answer170
viewsPDF in Binary DOMPDF Standard
I have a problem in the Windows when mounting a PDF. It gives the output all in binary. I am https://github.com/barryvdh/laravel-dompdf Look at the code: public function relatorio($id) { $pedidos_id…
-
2
votes1
answer687
viewsAdjust exported html file to pdf
I took an example from internet that is here : JS Fiddle to generate PDF from data that are in the HTML. however, in my case, the data was very misaligned.. let’s see; My HTML: <div…
-
2
votes1
answer117
viewsadded text with append does not respect div
I have a list that your elements are added with the jquery append and the added text does not respect div and list boundaries: css: #list_arquivos{ list-style:none; } #list_arquivos .arquivo{…
-
2
votes1
answer120
viewsCSS - How to reference another Combobox?
Guys, I got two autocomplete combobox cascading for State and City. When I change the size in CSS, I change the size of the 2 combobox and I need to change only 1. I use the example code of…
-
2
votes1
answer89
viewsProblems with PHP data
I am using the following function to return the date correctly from Mysql to the Brazilian format: function FormatBR($data){ $date = date_create($data); $date = date_format($date, 'd/m/Y'); return…
-
2
votes1
answer480
viewsGenerate Twitter-Bootstrap Alert within the script itself by clicking a button
I wonder if it is possible to create and open a Twitter-Bootstrap alert (.Alert) with a custom message within the script itself, without having to create the custom div outside the script and call…
-
2
votes1
answer484
viewsHow to focus input from a form constantly?
I have a form and need to focus on an input again until it satisfies the required, example: $('#text1').blur(function() { var teste = $('#text1').val().length; console.log(teste); if(teste > 5){…
-
2
votes5
answers1389
viewsDisable body click for a period of time
Would there be some way to disable my click events body. When I call a function I would like to disable the events in the processing which is a little time consuming and when it finishes activating…
-
2
votes4
answers235
viewsFind out which div with the same class is larger
I would like to have a code that goes through all the divs with a certain class and then see which was the biggest height and to define their size all the same. There is a way to do this? I know how…
-
2
votes2
answers2304
viewsonclick() in elements generated through ajax?
I’m trying to use an event onclick in <li> generated through a form ajax(). I have the following code $(".option").click(function(){ alert(); var text = $(this).attr("href");…
-
2
votes1
answer46
viewsFetch table value and put in form
This is the table has the fields the goal is to click the edit button and while clicking the instruction jquery that I put on top will fill in the fields automatically referring to the line that was…
-
2
votes3
answers876
viewsHow to remove a <TR> element from a list created with append?
[PERSONAL RESOLUTION] var precoFinal = 0; // função botão para adicionar um produto a um pedido $('#botao').on('click', function(event){ event.preventDefault(); var codigo = $('#inputCodigo').val();…
-
2
votes1
answer253
viewsIncrease payments to installments with Jquery?
I have a dynamic form and made a function to somar 30 dias after the first due date, but insert dates having the day 31 or day 01 is making the calculations wrong, for example: if I enter 31/12/2017…
-
2
votes1
answer872
viewsUncaught Typeerror: Cannot set Property 'focusInvalid' of Undefined
I’m making a validate to be used in conjunction with tinymce. On the Jquery Validate website, there is an example to do this. There it works. My website is displaying the message "Uncaught…
-
2
votes3
answers72
viewsI calculate between two inputs and result in another
The following script works only for the first block when typing the amount. Is there any way the function perform the calculation depending on the block in which the quantity is entered.…
-
2
votes2
answers301
viewsKeyup function in input when loading a modal
I am implementing a function to change the password of the logged in user. When I load the user password into the input component it does not validate the loaded password, which is outside the rule…
-
2
votes2
answers59
viewsSet loading display time
I have the following code that I use to send the form data to the PHP file. function loginRequest() { // Declaração de Variáveis var usuario = document.getElementById("txtusuario").value; var senha…
-
2
votes1
answer42
viewsMy function js does not want to stop
verificaseTemDado don’t want to stop when I give one clearInterval in the success $('.arquivo').on('click',function() { setInterval(verificaSeTemDado,1000); }); function verificaSeTemDado() {…
-
2
votes0
answers66
viewsIntersection of two collections of nodes with jQuery
I was trying to create a pseudo-search function by filtering the results of Hugo’s taxonomy that nay recursion for all nodes or, rather, related terms with each other, more or less like this: |-\…
-
2
votes2
answers287
viewsFilter a list of spans with jquery
I needed it a little urgent, can you help? I need to filter a list of spans : <div class="list-group pre-scrollable lista"> <?php for($i = 0; $i < count($ambientes); $i++) { ?>…
-
2
votes3
answers1161
viewsHow to send an object array type variable via AJAX?
I have the following object: var pessoas = []; pessoas = { nome: "julio", sobrenome: "Henrique", idade: 18, amigos : ["Pedro", "João", "Isabella"] } I send the friends array via ajax like this:…
-
2
votes1
answer1831
viewsChecking whether an item is visible or not on the page
I have the following buttons: First button: <button id="modal-btn" class="button btn-cart btn-verde-claro"> <span>Comprar</span> </button> Second button: <div…
-
2
votes4
answers974
viewsAdd Select Multiple values
I got the following select: <select name="idservico[]" id="idservico"> <option data-valor="25,00" value="1">opção 1</option> <option data-valor="20,00" value="1">opção…
-
2
votes2
answers1544
viewsHow to add a line break after a certain amount of characters?
I have a variable that receives a text, I would like to insert a line break in that text after character number 40 in jQuery. That line especially: $(".chat").append('<li class="other"><div…
-
2
votes1
answer154
viewsI have a Javascript function in Chrome but not in Firefox
I have a javascript function that doesn’t let write numbers, only letters, in Chrome it works exactly as it is proposed, now in Mozilla it doesn’t work, below my function: function soletra(event) {…
-
2
votes1
answer780
viewsSending variables in Ajax to PHP
Using php I do a BD search and send the data to AJAX via JSON: echo json_encode(array('sucesso'=>true, 'mensagem'=>'Dados inseridos com sucesso','idservico'=>$idServico)); In AJAX I…
-
2
votes3
answers1697
viewsHow to achieve this effect in a progress bar?
How to do this effect on the text inside the progress bar where the text changes color according to bar fill, and when the bar reaches the text, only a part of the text changes color? See that when…
-
2
votes0
answers128
viewsKeep selected multiselect values when refreshing the page?
Hello, I have the code below which is a multiselect by category. What happens is the following, when the user ceases to fill in a mandatory data, the page is reloaded and the message appears telling…
-
2
votes1
answer2816
viewsUsing reCAPTCHA with jQuery (ajax) and PHP
Hello, Guys! It’s been 4 days since I programmed using jQuery :) I made a form using ajax and PHP, worked perfectly! But... the need to implement reCAPTCHA has arisen. I don’t know where to start, I…
-
2
votes2
answers6673
viewsReceive data from a url (m3u) using php
I have the following doubt: I have this URL: http://Infinity.quor8.com:8000/get.php?username=wesleybr&password=mxViBCIK05&type=m3u_plus&output=ts When accessing it by the browser is made…
-
2
votes2
answers4011
viewsShow and IDE jquery effect
How do pro jquery open only the box I clicked, without opening the others. I tried to use $(this), but I couldn’t. Not the way I want. HTML <div class="main"> <i class="icon…