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
-
1
votes1
answer518
viewsHow to use this Modal bootstrap more elegantly?
I don’t know if the title is appropriate, but I’ll explain: In the example below I have a confirmation modal that can be called by several buttons and depending on the button clicked I take an…
-
1
votes1
answer67
viewsSelectpicker: show already marked options when page is loaded - AJAX JSON
I’m using the Bootstrap-Select (selectpicker) and I would like to know how to make the options inside this selectpicker already marked when the page is loaded and the same is clicked. In case I’m…
-
1
votes1
answer52
viewsWhat event says that a radio button has been deselected within a radio input group?
Knowing when a certain input within the group of radio inputs has been de-selected. $('[name="teste"]').on('change', (e) => console.log(e)) <script…
-
1
votes2
answers71
viewsHow to prevent a function from being executed when a condition is reached and reactivate it when necessary?
I’m in a skirmish here to try to stop a function when a certain condition is reached and rehabilitate it if a certain button is clicked. In my case, I have a text and buttons that change the font…
-
1
votes2
answers58
viewsProblem using counter variable within Xmlhttp/AJAX request
When I run the following function I always get 0 as a result. I’d like to know why and if I’m doing something wrong. The function cadastro_socios_xlsx receives an object and registers each instance…
-
1
votes1
answer312
viewsError sending a POST request via ajax
Good morning, I am trying to send a POST request to a URL but am having the following error: Syntaxerror: Unexpected end of JSON input JSON is correct in formatting because I have validated it. The…
-
1
votes1
answer58
viewsWhen clicking a checkbox, automatically mark other checkboxes
I have the following code: <input type="radio" name="Tipo" value="Sabonete"> Sabonete<br> <input type="radio" name="TipoSabonete" value="Neutro"> Neutro<br> <input…
-
1
votes1
answer971
viewsUncaught Rangeerror error: Maximum call stack size exceeded
I’m having an error in my action on my console apesenta o seguinte erro Uncaught Rangeerror: Maximum call stack size exceeded Could someone help me I’ll leave link of scripet and page where If I’m…
jqueryasked 4 years, 6 months ago Jefferson Bruno 13 -
1
votes1
answer20
viewsJquery.click() function with problems running
According to my code below, when I click the button Ver senha on the web is making a GET when I really just want you to show the password field. What might be wrong? $('.passwordShowLabel').hide();…
-
1
votes0
answers17
viewsReplace part of an input ID, Name and Class
I have the following inputs <div class="sub-item-rows" id="pega-id"> <input class="numeric_only left addon_qty_limitador disabled" style="border:none; background-color:unset" maxlength="5"…
jqueryasked 4 years, 6 months ago Matheus Arruda 482 -
1
votes2
answers121
viewsSQL Update from another tab
Hello, I’m trying to update the product table using the average unit values of one year in the document table (where the notes enter) and the q instruction I’m using returns with error: UPDATE…
-
1
votes2
answers230
viewsWhen selecting a checkbox, disable other checkboxes
I have the following code: <div class="form-group"> <label><input type="checkbox" onclick="marcarTodos(this)" name="Tipo" value="Usuarios"> Usuários:</label> </div>…
jqueryasked 4 years, 6 months ago user24136 -
1
votes1
answer82
viewsSelect with different behavior on mobile
I’m making a script (I don’t know if it’s the best way, I’m beginner). Script behavior: The behavior of the script is as follows: There is a select asking how many pizzas you want, when answering I…
-
1
votes1
answer33
viewsManipulate elements created via jQuery
I created this very simple code to illustrate my doubt: Here I have an html table with some lines, each row has a trigger that removes it via jQuery. In the table tfoot there is a driver that…
-
1
votes0
answers70
viewsevent change without effect when triggered by a select field dynamically added to the page using Jquery
Can someone help me with this problem ? Steps to generate the failure: click add change field value from 2° line to load field, also from 2° line the flaw <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…
-
1
votes2
answers67
viewsUnlock button when hidden section appears
I am developing an interactive infographic in which the person will have to go clicking on certain buttons to open the content related to this button, so far so good, but I wanted the person to…
-
1
votes1
answer47
viewsHow to separate string in jquery from autocomplete?
I’m having problems to make a search system, at the moment I do the search/comparison with 2 columns and shows the name of the 2 columns. $pesquisa = filter_input(INPUT_GET, 'term',…
-
1
votes1
answer13
viewsNavigation error with jQuery
I’m making a site to use portfolio and decided to make a menu for navigation. I also decided to implement a Feature to change the color of li always when scrolling the scroll. It was even working,…
-
1
votes1
answer30
viewsAccountant Jquery
Good evening, could someone assist me in a dubious. Each time the person clicks on the BUTTON is called the function: function cloneDivDescricaoProduto() { var count = 0; count++;…
jqueryasked 4 years, 4 months ago Victor Padovan 21 -
1
votes0
answers14
viewsProblem with dynamic JCROP
I have the following code that opens a modal with the jcrop to cut and then put the cut in a preview, but when I close the modal and select another photo it does not update in the modal. already…
-
1
votes1
answer46
viewsError returning values using $.getJSON
I’m trying to make a page about data from covid-19! I’m trying to get the total number of dead from two different days using the following code: var ontem =…
-
1
votes2
answers86
viewscatch all getElementsByClassName with exactly equal class
I would like to pay all div containing exactly class '1 2 3' Example. <div data-full="true" class="1 2 3 4"> <div class="1 2 3">text</div> </div> <div class="1 2…
-
1
votes0
answers28
viewsGoogle Charts displaying data in wrong order
I am trying to do a Dashboard in a test application that in case would be the amount of each item in each month, with this I do some queries in the backend and pass such information to the front,…
-
1
votes1
answer68
viewsTake data from an xlsx file
I am trying to make a code that reads the data of an excel file and write them on the console. For this I am using the Sheetjs but I’m having a problem. Every time my code returns "Undefined" on my…
-
1
votes0
answers60
viewsHelp with IF and ELSE in JS
First of all I have to say that I’m starting now to work with JavaScript, I’m sorry if I misspell the name of something or talk some nonsense, come on. My goal is to have a modal with steps, with…
-
1
votes1
answer57
viewsAfter reloading, the jQuery system does not work
When I click a button .click, my JS runs a function and updates the fields with the class .click. But why when HTML is updated and clicked on .click again nothing happens as if the class does not…
-
1
votes2
answers91
viewsHow to hide thead when all tbody tr are hidden?
Good evening, I am trying to make a search bar that Filtre by cells between various tables, and I would like this search hide the <thead> of the tables that do not possess results…
-
1
votes0
answers46
viewsWhen closing a bootstrap modal, the unobtrusive Jquery validation triggers unnecessarily
By clicking the Close button of the Modal window, the validation is firing and it does not close. Then, if I give another click, then yes, the modal window is closed. I confess that I am bothered by…
-
1
votes0
answers45
viewsForm of insertion into accordion in multiple items with AJAX
Hi, I’m trying to make a requisition for updating item of accordion in the mysql, but only one item is updated. The code works as follows: Sample of Code 1, creates the cards within the modal. Each…
-
1
votes1
answer364
viewsUsing jquery field mask in ASP.net Core MVC
I am working on a CRM project with C# Asp.net core with Mysql and I am already with bank ready and everything straight and I made the client registration form and I am in the validation part now. I…
-
1
votes2
answers47
viewsGet audio id played
I need to get the audio ID that the play user, I figured something like this would work: document.addEventListener('play', function(e){ $(this).attr('id'); }, true); <script…
-
1
votes1
answer149
viewsHow to adjust the width of the jquery datatable to larger resolution screens
I’m having trouble displaying my datatable (empty) on screens with higher resolutions. I’ve tried using the class table-responsive-lg, but it hinders the responsiveness applied by the class…
-
1
votes1
answer43
viewsjQuery | Fill input and search ajax (ajax search already working)
Great, I got a problem. I already have on the site a Search field in Ajax that works perfectly, when I type it already makes the search. OK. However I am implementing this on a WP site, and put via…
-
1
votes1
answer27
viewsHover of a select with javascript/jquery
Good morning, I need to create an Hover in each selects option and I’m not able to do. This select is done this way. <select id="valorFiltro" style="width:350px" class="browser-default…
-
1
votes0
answers32
viewsfull Calendar - display data
I’m having trouble displaying information. Follow the code: This is where you should show it: <div class="form-group row"> <label class="col-sm-2 col-form-label">Email do…
-
1
votes1
answer41
viewsPlace X, Y values on an image when loading the page | Javascript
I have this javascript code that puts a marker with the x and y location when you click on the image, but I want to fill the markers with the values of my database when loading the page and not when…
-
1
votes3
answers50
viewsShow div only after checking 3 radio Buttons
I got a problem I can’t fix. I need a div to be shown ONLY after 3 radio Buttons have been checked, but it’s not working. I’m only getting through with one option, but it has to be the 3 at a time…
-
1
votes0
answers20
viewsHow to set a combobox with initial values ? Using javascript / jquery
Hello, I have a code in Go language where we have a web page made in html + javascript + jquery. I need to set the initial values of a combobox according to what is saved in json file. Below follows…
-
1
votes1
answer50
viewsHow to block a <a> tag with javascript
I have a Step by Step I need to cancel the ticket to the next page... This is my code : var nome = document.getElementById('nome').value; var resposta = true; if(nome == ''){ var resposta = false; }…
-
1
votes1
answer30
viewsjQuery Animate() with unwanted behavior
Good evening! I am making an application and need to use some slide effects. I used the animate jquery to get the desired result. It was even good, but while the animation occurs the height of the…
-
1
votes1
answer77
viewsSelect parent div by clicking on child element
Hello, I’m having trouble selecting a parent element when your child is clicked/selected. I have a main div that takes care of the alignment of an image that is inside it, this image when clicked,…
-
1
votes5
answers54
viewsClose modal after saving to Bank
Speaks My friends I have the following Modal: I would like that when pressing save it closes the modal and updates only the table, I made the following code: It is closing however gets dark td on…
-
1
votes1
answer27
viewsError using the 'is' method
I’m using the method is to check if, after a while, the mouse is inside or outside an element. However, for some reason, it is giving the following error: Uncaught Typeerror: Aucon.is is not a…
-
1
votes1
answer38
viewsSave timer time when restarting page
I’m making a countdown timer in Javascript that after 3 days it restarts the countdown, but I wonder how I can make the countdown not restart when reloading the page. let time = new Date(); let…
-
1
votes1
answer51
viewsAJAX in pure JS (using Xmlhttprequest)
I need to send data from one form to another page. I am currently using Jquery and AJAX, but I need to move to pure JS. I’ve seen other similar posts, but I couldn’t make Xmlhttprequest work. The…
-
1
votes0
answers25
viewsSend JSON to PHP8 via AJAX
I need a lot of help. I need to send a JSON to PHP via AJAX/Jquery but something is not working. I have a JS file with the command: $('#save').click(function(e) { submit(); }); function submit() {…
-
1
votes0
answers34
viewsHow to perform zoom events by tweezing a "draggable" element?
I have an element that uses ui dragagble, which works when drag element, but I wish I could call the methods zoomIn() / zoomOut(), when you were on the phone, through that pincer event: Pinch Event.…
-
1
votes1
answer26
viewsHow to make a Rigger draggable?
I’m having trouble positioning an element in the center when I click on a zoom method, an element UI Jquery Draggable is dragged off to the corner, and I click on a zoom tool, it ends up…
-
1
votes0
answers24
viewsJquery Ajax does not display Object in the PUT method, using . net mvc
I own the Object var obj = { nome: "Felipe", idade: 23 } I created an ajax call by jquery like this: $.ajax({ url: 'ConfigCode/UpdateOptionsStatus', // route controller na web type: 'PUT', data:…
-
1
votes1
answer33
viewsI cannot validate input number separately
I’m working on a project, basically an online menu that transfers the order data by Whatsapp. I cloned a input number to capture the amount of orders and multiply by the selected order via checkbox.…