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
answer123
viewsIs product image in <option> of <select> possible?
I have a budget system but as there are many items with similar description arose the need to view the image together with the description, the image link and the description will be dynamic and…
-
1
votes0
answers203
viewsGet JSP foreach value in Jquery to display in label
I would like help to catch a figure that is set within a forEach in my JSP, play for Jquery and it display in a label on the same page. That one forEach retrieves a direct list from the database. I…
-
1
votes1
answer47
viewsAuto-complete jquery error with image
I have this code in jquey and PHP, I need to show the image of the product in auto-complete along with the name, in div #outworking. I put the console.log() to see if he was looking for the…
-
1
votes1
answer51
viewsgift only updates at the end of the event
Hello, I have a button with a click event, and when I click on it, I make an ajax request in a foreach. I would like to open a loading modal to run while the requirements are being made, but the…
-
1
votes0
answers22
viewsGeolocation - returning zero to server only
I have the following code that returns my latitude and longitude. Fiddle <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">…
-
1
votes0
answers111
viewsTypeahead with accentuation
I created a small application that uses typeahead to search. I have registered people with accentuated names and to find them I need to write the absolute name (with accent). I need to find a person…
-
1
votes0
answers26
viewsAdd product if already removed
I have a problem with this code: Why instead of adding only one element from scratch it takes what has already been removed and puts it back? The error is in this list of the displayProducts,…
-
1
votes1
answer694
viewsShopping cart item is not removed
I have a shopping cart created dynamically, but the problem is that when I delete an item it even removes, but if I try to add another item it takes the one that has been removed and adds again in…
-
1
votes0
answers74
viewsDo not repeat javascript protocol number
I would like you not to repeat the values, and click show the code already without repetition var vetor = []; var auxiliaProtocolo = document.querySelector(".type"); var limiteMaximo =…
-
1
votes3
answers331
viewsJquery calculation of centimeters with coin result
I am breaking my head to try to make the code below understand that the value of DIV should be respected the comma (Ex.: 1,20cm) in which would be: div1(in centimetres) X div2(in centimetres) =…
-
1
votes1
answer93
viewsAngular 1 reading JSON cross-Domain
Guys having a small problem with angular and wanted to know if someone can help me, I was asked the following task to make a shelf from products of an external JSON (where has all the info of each…
-
1
votes1
answer104
viewsTaking value from one input and passing to another dynamically
I have a screen to sell products, with this I have a button to add product to be sold, this button brings a select (to choose the product to be sold) and an input (that comes the value of the…
-
1
votes1
answer116
viewshow to define a background-image in src of an img tag using jquery?
I’m creating a modal to display a gallery and the idea is that when clicked on the images, the modal looks in the background-image of each <img> and apply to src. The modal works, but the…
-
1
votes1
answer395
viewsCan you disable the animation of a Charts.js chart?
has to disable an animation of a chart Charts.js? I’m putting together a chart that updates every 300 milliseconds via ajax, but the animation of the Charts.js chart disrupts the visualization. the…
-
1
votes2
answers51
viewsReturn desired value within a function
When trying to return the value of $("#datepicker-range").val() at the beginning of the code, console gives me a value emptiness. Soon, I was suggested to make a Sniffer page because the reason the…
-
1
votes1
answer455
viewsDynamically php add/remove inputs
I am creating a form where when filling in, the user will add more fields dynamically, so far I have already, but I would like to separate the value of each field added to send the separate data in…
-
1
votes1
answer130
viewsJquery Chosen plugin does not filter search on PHP site
I am using the plugin Jquery Chosen does not perform filter in php system. Code to scan database and get data list: <div class="grupo"> <!-- class="borda select2_single form-control…
-
1
votes0
answers1174
viewsGenerate Random Number without repetition Javascript
So I want to generate this protocol, with random numbers and no repetition. It’s functional, which means the code won’t repeat. However, when clicking generate protocol, at the click, it was to…
-
1
votes0
answers347
viewsError initializing Datatable with jquery
Hello, I have a Datatable that will be fed with Javascript Source (data source) when opening the screen, I want it to be started "empty", without data. For some reason, it already starts…
-
1
votes0
answers22
viewsFollow UTM to the next page!
Hello I have a code that when the button is clicked the URL parameter of the current page goes to the next page... This would be the current URL: google.com?utm_source=1 When the button is clicked…
-
1
votes4
answers1118
viewsAutomate click of button
I need to automate the action of a button click for some script (Javascript), could help me? <!doctype html> <html lang="en" class="no-js"> <head> <meta charset="UTF-8">…
-
1
votes1
answer163
viewsRefresh in data attr to show in bootstrap Popover
I have a table who owns a td with the following code : .append($("<td class='popOverStatusAlmo' data-container='body' data-toggle='popover' data-placement='top' data-content='" +…
-
1
votes1
answer49
viewsChange Selection within a Select (form)
Good afternoon, I’d like you to help me with this: I have 3 buttons that open the same MODAL, and inside this Modal I have a Select with 4 options: 0 by default, and 3 more options from 1 to 3,…
-
1
votes1
answer330
viewsJquery Ajax not working properly on Mobile Browser as well as Macos
The following code works perfectly in the Windows 10 Browser, but it doesn’t work in the Android/IOS mobile browser completely and in Macos gives a message telling the user that it is not working…
-
1
votes1
answer82
viewsField validation via jQuery correctly
I have the following validation for the TextBox justification. But even returning the message and clicking the OK button the system validates the deletion. The right, should return the message and…
-
1
votes0
answers304
viewsSet Datatable column data type to date
I have a Datatable that displays values coming from an SQL database, this way: <table id="tabelaLogs"> <thead> <tr> <th>Código</th> <th> Data </th>…
-
1
votes1
answer62
viewsDisable Submit function when appearing error message
How do I "block" or "disable" the form button when the error message appears? Input <input style="height:24px;" name="email" id="email" title="<?php echo…
-
1
votes0
answers345
viewsHow to block special characters coming from a "Paste"?
I have the following problem, there is a validation being made that way: $(document).ready(function(){ $(this).on("paste", "#email", function(event) { var $obj = $(this); setTimeout(function() { var…
-
1
votes2
answers263
viewsHow to enter data with JSON and MVC5
I have a registration screen, where the user can insert as many emails as he wants in each record. For this, in my View I have the following code <div class="form-group"> <button…
-
1
votes1
answer99
viewsRequest validation via jQuery, Json
I want to do a function that the customer type his order it is checked if it exists in the bank or if it is an invalid request. And I want to return this via Ajax, but I never messed with Ajax,…
-
1
votes1
answer238
viewsCreate a filter using Jquery
I’m making a filter in jquery but I’m getting my logic wrong somewhere and I’m not getting out of place. My filter is not disappearing with some words I type, it brings me the whole block, even…
-
1
votes2
answers990
viewsWhen changing select call run query
I’m trying to change a script I have for weather forecast, but unsuccessfully, today the user selects an option in select and clicks the button to run the search, what I’m trying to do is use…
-
1
votes2
answers190
viewsCreate object and send by ajax - Codeigniter
Hello, Can help me create an object with this code and send by ajax. console.log("cadastro-assessoria trabalhando"); //Variáveis $(document).ready(function() {…
-
1
votes1
answer25
viewsFirst Child is not selected
I have the following code that generates a slider but the property first-Child does not work. What’s the problem? var elementoSlider = $('#dados-slider'); var mostraImagem = ""; var…
-
1
votes1
answer39
viewsHow to make a Validator jQuery
Hello, I created a "part" field of the rest of my form, and I would like it to have the same "face" as the rest, I did a validation for it, to check whether or not there is already an element in the…
-
1
votes1
answer374
viewsLeave image with responsive text
Hello, I need to insert a text on top of an image, which is responsive in the correct place of the image, until then it is working "well", but the site is done in bootstrap, and when it comes out of…
-
1
votes1
answer210
viewsDoubt - Clear img function with javascript does not work
I need to clear a field img and for this I am using the code below, but by clicking on button javascript does not work because the page receives a refresh. I have scanned the browser console and no…
-
1
votes1
answer666
viewsBootstrap Modal ASP.NET
I’m creating a mobile app using modal bootstrap, Asp.net (aspx). A href link triggers the modal and needs to send the modal value contained in a data-* attribute that has been created. The goal is…
-
1
votes1
answer208
viewsTake only a portion of the input content without submitting
I am creating an image gallery using the responsivefilemanager plugin and a problem has arisen that I am unable to solve. Look at this picture: Clicking the blue button (With the symbol of the…
-
1
votes1
answer178
viewsHighcharts - Line Chart with date
Hello, I can’t create a Chart line using the plugin Highcharts, where the X-axis is separated by months (Jan, Feb, etc...) and the Y-axis is the number of new customers based on those months. Below…
-
1
votes4
answers559
viewsFunction has screen in real time, hangs the screen with time!
I am studying ajax, jquery and php. And in order to make a screen that loads automatically, for future chat. What I want to understand is the screen loading function. I have index.php code…
-
1
votes1
answer46
viewsdate comparison for new dynamically inserted fields with jquery
This script correctly compares the dates of the initial inputs. If new pairs of inputs are added the function always compares the first pair of inputs. How to make this code compare the dates of the…
jqueryasked 7 years, 3 months ago user60252 -
1
votes1
answer678
viewsHow to open the modal bootstrap form after an Laravel 5.4 validation error
I have a contact form in modal bootstrap. I have the validations where they are validating correctly. Now my question is: How do I stop when I do not pass the validation it return the message in…
-
1
votes1
answer1386
viewsAjax and Jquery Freight Calculation
I am developing a virtual shop where in the shopping cart I will implement the freight calculation via mail webservice. The code below it makes the calculation and returns only the Pac option, I…
-
1
votes1
answer283
viewsDifficulty in using timepicker
I’m having trouble implementing the timepicker in my system. The user must select a time in a dropdownlist and this time will be used to be the minTime of timepicker. For example, the user selects…
-
1
votes1
answer303
viewsPick JSON value returned from Laravel
I got the following JSON returned from a controller Laravel: { "id": 105, "tratamento_id": "24", "eim": null, "oft": "12", "codigo_produto": "CO009-1200-1200", "descricao_produto": "COMPENSADO…
-
1
votes0
answers144
viewsSlideshow - Buttons with Jquery
I have to make a slide with play/pause button, next and Previous. On the slide I need to use html, css, java script and my buttons need to be with jquery. The play/pause button I was able to create.…
-
1
votes3
answers230
viewsChanging button span through jQuery
I have a button that at the click of it directs to a request in ajax to an external file that adds a product, however this does not matter much in this case. I wanted to manipulate what is written…
-
1
votes0
answers297
viewsRenew Authentication Token with javascript
I have the JWT class but I can’t renew it. How do I renew this token when the registration is done? I already own the token in sessionStorage called token with key. Class: function parseJwt (token)…
-
1
votes2
answers288
viewsChanging button function via jQuery
I have some buttons that at the click of it directs to a request in ajax to an external file that adds a product, however this does not matter much in this case. I manipulate these buttons, being…