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
answers322
viewsAnimated dropdown with jQuery
I’m developing a site, and in its header should contain a Dropdown that appears when you give a Hover in the header link, preferably with its animation coming up, but it has a bug that when you go…
-
2
votes1
answer24
viewsAjax problem when trying to use data in later functions
I’m trying to get the data from the functions BuscaCabeca and BuscaBraco, it is returning the data all right, but when I try to use the data created cabeca and braco is like Undefined, what I’m…
-
2
votes1
answer242
viewsRemove one element at a time with Jquery
I’m using the function Clone jquery to replicate a div. However, when removing these elements, regardless of the amount that has been replicated, the function always removes the div by full. I need…
-
2
votes2
answers169
viewsHow to limit an input according to the variable?
I have 2 field as shown below : <div class="col-md-4"> <label for="descricao">Valor título </label> <div class="input-group"> <span…
-
2
votes1
answer66
viewsHiding elements inserted with append
I have this code: db.transaction (function (tx) { tx.executeSql(`SELECT * FROM cartoes WHERE usuario = ${0}`, [], function(tx, results){ for(var i=0; i<results.rows.length; i++) { var nomeEmpresa…
-
2
votes1
answer817
viewsCalculate values in jQuery
I have three camps: <input type="number" id="product_quantity" name="product_quantity" placeholder="Quantidade"> <input type="text" id="buying_price" name="buying_price" placeholder="Valor…
jqueryasked 5 years, 11 months ago Sr. André Baill 6,946 -
2
votes1
answer82
viewsFocus on the first validation element - jQuery
Hello, With the function below, I validated required fields. In this case, I don’t use this function to submit the form, but rather to add items to the object. However, I want to focus on the first…
jqueryasked 5 years, 11 months ago Wagner Fillio 1,328 -
2
votes1
answer166
viewsSwap the values of the "name" attributes of subsequent inputs/selects html?
I happen to have the following situation, in my HTML I have the structure that way: <div class="form-row mt-3"> <select name="produto0" class="form-control{{ $errors->has('produtos') ? '…
-
2
votes2
answers1446
viewsJSON PARSE returning 'Object Object'
I would like to know what is wrong with my job, because in allocating obj = data, the same sage object object, the date value is a JSON returned by the WEBSERVICE. Date value: [{"descricao":"Lorem…
-
2
votes1
answer70
viewsHow to duplicate this function jQuery
As you can see in that fiddle For example, when the first link is clicked a div appears and when pressing the browser back button, it closes. I would like the second link to work in the same way,…
jqueryasked 5 years, 11 months ago Thiago Soubra 341 -
2
votes1
answer104
viewsHow to do Youtube Music fixed menu effect
I would like to bring this effect from the Youtube Music app menu to my website. Basically it rolls together with the page when going down and back to appear when going up, in a fixed way. My…
-
2
votes1
answer113
viewsCount hashtags in a textarea with emojionearea
I would like to know how to count hashtags in a textarea with emojionearea That is the code: I would like to know how to count hashtags in a textarea Example: const maxLength = 2200 const…
-
2
votes2
answers44
viewsSelector lt() does not work
In my jQuery selector experiments I came across something that I don’t know is my mistake or is a natural limitation of jQuery. I have 10 Ivs with classes .dado. Each, when clicked, changes the…
-
2
votes2
answers72
viewsOrder registration by name in alphabetical order
I have some entries that you have the option to filter alphabetically by name. I enter these entries through the append like this: $(".listagem").append( `<div class="row" id="corpo-cartoes">…
-
2
votes1
answer28
viewsScale image and hide caption with jquery and css3
Talk personal, I have an image zoom problem and hide the caption itself, in the image’s Hover I increase its scale in css, already in jquery I hide the caption, but when scaling, the images next to…
-
2
votes1
answer40
viewsAdding and removing classes
When clicked in the category add the class "active". When you click another category remove the class from the previous category and add it in the clicked. So far so good. The question is to do the…
jqueryasked 5 years, 11 months ago Lucas Granvilla 444 -
2
votes2
answers497
viewsHow to assign target="_Blank" to all external links after ajax has finished loading?
Hello, I have a wordpress blog where I need all external links to be opened in a new tab when clicking. But these links are loaded by ajax and the function I have is executed before ajax finishes…
-
2
votes1
answer102
viewsA loading appears while loading Jquery content
I have the following code: <div id="conteudo"></div> <script> var qnt_result_pg = 20; var busca = ""; var pagina = 1; $(document).ready(function () { listar_usuario(pagina,…
jqueryasked 5 years, 11 months ago user24136 -
2
votes1
answer506
viewsOverwrite table data with Datatables
Every time I make a change in select it calls this function, it takes the id of the selected tax and does the research by (daughters) tax rules, I need to update the table every time it changes but…
-
2
votes1
answer34
viewsSelect and display character in more than one div
I am working on a theme for Ghost and in the display of articles (blog feed) the title of the article and the summary will be displayed as follows: For this I use the following code: var getText =…
-
2
votes1
answer82
viewsJquery-Querybuilder does not work inside Vuejs
Good morning, I’m trying to use Jquery’s Querybuilder along with Vuejs, but I’m getting the following error: Below follows the code that is giving this error: this.$refs.builder.queryBuilder({…
-
2
votes3
answers655
viewsMore than one Date Field in Ajax
Good morning. I have the following code: <form id="enviavenda" method="POST" action="" autocomplete="off"> <input class="input_codBarras" id="codBarras" name="codBarras" type="number" />…
-
2
votes1
answer699
viewsCopy text from a tag and paste into a field by pressing a button
Good afternoon everyone! Guys I have a custom page of a captive portal on a pfsense server. On this page there are filters in php where page elements are different depending on the result that the…
-
2
votes1
answer191
viewsResponsive dropdown menu, not working properly
I created a menu dropdown responsive, however, is not working properly. On the mobile screen, by clicking on the menu icon it opens and clicking on a menu link or outside the menu it closes.…
-
2
votes2
answers63
viewsChange only 1 element and not the selected one
Good morning, I am developing a project where I made a small function where I will change all the items except what was selected, but this item still ends up being changed. HTML: <div…
-
2
votes2
answers626
viewsHow to change the title color of the browser tab?
<html lang="pt-br"> <head> <meta charset="UTF-8"> <link rel="icon" a href="https://is.gd/DhDDsG"> <style> * { margin: 0px; padding: 0px; } body { background-repeat:…
-
2
votes1
answer33
viewsInsert id in data-formid="" from jquery
I need to include on the data-formid="" the id of each event clicked, so that it is different and give u Ubmit with ajax in each form. I’ve managed to pass the id that way: Html <div…
-
2
votes0
answers68
viewsDownload coming table of AJAX request return
Test scenario I have a page with input "start date" and "end date", and a "spreadsheet" button". The button calls the function planilha(). Function planilha(): function planilha() { var dados =…
-
2
votes1
answer53
viewsPass a variable that is in a javascript file to a $_SESSION and pick up a php page
Good evening friends. Next I need to pass a variable from a . js file to a Session and to pick up another page with php. The javascript function returns the first available time for marking a query,…
-
2
votes3
answers298
viewsFunction . play() in jQuery
Test scenario I have a page with the following elements: <audio id="aud1" src="audio/1.ogg" type="audio/ogg"></audio> <audio id="aud2" src="audio/2.ogg"…
-
2
votes1
answer293
viewsCurrency Conversion Using jQuery API
I am making a conversion from Chinese Currency (Yuan) to Brazilian Currency (Real). I am using the website API: https://free.currencyconverterapi.com. Turns out I can’t set the value to be…
-
2
votes3
answers481
viewsChanging the text of the Button
I would like to change the text of the button after confirmation reading, however as I have several equal elements in the DOM, how do I change only the text of the button in question. <td…
-
2
votes1
answer30
viewsShow HTML only from a div
I have a function that generates dynamic form, this form is loaded via a GET via Jquery and shows the form mounted on a div. I need to get only the source code of this DIV, someone knows a way to do…
-
2
votes3
answers399
viewspass javascript variable to a php variable
Good morning, everyone, I’m having a question: i have a select that takes the one array from the database, and every time the user changes the select it has a change in javascript that update it in…
-
2
votes1
answer532
viewsStopwatch running from the first second
Guys I found this code in a forum, I made some modifications only I do not know why the script is only running after 1 second, for example... it works normal updating after 1s, only it does not show…
-
2
votes2
answers614
viewsMove fixed div along with browser scrollbar horizontally
I have an unsolved complication... I thought, I thought and I couldn’t solve. body{ min-width:900px; min-height:700px; } #topo{ margin-top:0px; position:fixed; width:100%; height:40px;…
-
2
votes1
answer230
viewsHow to generate a json with parent-child format
I need to do the following json by php { "status": "200", "data": [ { "id": "1", "premio": "Fusca 74", "modelo": "Fusca 74", "descricao": "Fusca ano 1974 lindo\r\nFusca de colecionador Raríssimo ",…
-
2
votes3
answers154
views -
2
votes0
answers78
viewsList files from a folder via ftp with jquery ajax
I need to list files from a folder that sits in one ftp server, how do I access this folder ? The user must select a list item (<select><option></option></select>) called…
-
2
votes1
answer139
viewsClose menu by clicking link
I’m making a menu, and when the user clicks on the link it should close. But this is only happening when I click on the hamburger icon. Here is the code: (function ($) { "use strict"; var app =…
jqueryasked 5 years, 8 months ago fepenavarro 23 -
2
votes2
answers117
viewsTo add variable to a Jquery selector
Hello, I made a method in Javascript that when clicking a button is added a text with toggle effect. Only I’m using a function that takes 2 values as arguments to do this, and I can’t use these…
-
2
votes1
answer289
viewsHow to group radio Buttons
Hello, I’m wanting to make a way that these radio Buttons get the same name inside a form, but that are marked by question. Because I’m going to send this form to a PHP and pick it up there as an…
-
2
votes1
answer70
viewsMark Checklist container and run JS
I’m getting a lot of Javascript, I’ve tried several ways but I’m not getting it... I have a structure like this: I want that when the first checkbox is checked, it multiplies the first price with…
-
2
votes1
answer30
viewsFocus on a field with tabpage
I am using this code, to put the embroidery in red when a field of the tab is not filled correctly, and it then gives the Focus on the nearest tab, and so on.…
-
2
votes1
answer190
viewsAJAX json_encode PHP file
Good morning. I’m trying to build a form where the input is validated by a PHP file via an AJAX call, but I’m having problems with how I receive the "date" in callback. This is my call via AJAX:…
-
2
votes0
answers29
viewsHow to fix a Jquery script that uses a Webservice to upload a file
I am trying to save a PDF file to my server folder using a Webservice. I think this should be a simple task, but after searching a lot on the WEB I discovered the script below but when I run it is…
-
2
votes0
answers328
viewsLogin with authentication token using jquery and ajax
I’m venturing to try to log in using token for authentication, using jquery and ajax. I have the user screen and password with the login button and another screen where there is a table with…
-
2
votes1
answer63
viewsHow to keep PHP session during long upload
Hello, I have a basic authentication system using Session for a file-upload system However, when some user with slow internet puts many files in the upload queue (10 or more files), and each file…
-
2
votes1
answer183
viewsOPEN SELECT when "Hover" or "Focus"
I’ve searched several sites, but I did not find one that was what I wanted, the ones I saw expand the select using the size and that’s not what I want, I want as if it was a user click on the…
-
2
votes1
answer68
viewsLoop of multiple IDS in jQuery
I have that code HTML and PHP <?php foreach (array_chunk($unfollow, 3) as $row): ?> <div class="row mb-5"> <?php foreach ($row as $value): ?> <?php //var_dump($value) ?>…