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
votes0
answers20
viewsPlace Progressbar inside a JQGRID cell
Como Coloco the Progressbar within the last column according to the Time Travelled? var grid1 = $("#jqGridRiscoAcao").jqGrid({ url: '/Qualidade/RiscoAcao/Listar', datatype: 'json', mtype: 'GET',…
-
1
votes1
answer126
viewsBack to top button is not overwriting the footer
I have the following problem, I created a button back to the top, positioned it in the lower right corner and gave a position:fixed in it. I’m making use of jQuery library. The problem occurred when…
-
1
votes1
answer33
viewsjQuery function for selecting values in Divs and playing for an array
I’m taking the values of several <div>s with the same class name and trying to play for an array in jQuery, but as I’m starting in the language I’m not getting, I’ve already searched the…
-
1
votes1
answer440
viewsUpload Image in Blob Format
Good morning! I am trying to send binary Blob data by Ajax to upload via PHP. index.html: document.getElementById("btnSave").addEventListener("click", event => { canvas.toBlob(function(blob){ var…
-
1
votes1
answer30
viewsRecover DOM element from a column
I have an event in Jquery that flags information from a table row (I’m using Jquery Datatables). var linha = $(this).parents('tr')[0].innerHTML; The value returned is this: <td class="text-center…
-
1
votes1
answer91
viewsDuplicate JS when sending record
I have an application with bootstrap modal, but when sending the data with the button it duplicates the event, follow the js with duplication. $(document).on('click', '.form-delete', function(e){…
-
1
votes1
answer35
viewsVideo does not appear at the bottom of the site
I have a website where every access it shows a different video. The code is like this: <script> $('document').ready( function(){ var video = Math.round(Math.random()*7); var videoaleatorio = […
jqueryasked 6 years, 4 months ago user24136 -
1
votes2
answers526
viewsHow to customize messages from Select2?
I want to remove messages from Select2: Searching; No Matches found; Follow the code below: Pagina Html <input id="ajaxSecretaria" type="hidden" style="width:300px" /> Script: $(function () {…
-
1
votes0
answers68
viewsStreamline HTML with JQUERY
Hello, I’m having difficulties in a JS activity, I must make the last publication should be displayed first, already tried Sort, tried Sort with Function and nothing resolves, I can change the order…
-
1
votes2
answers59
viewsEvent does not work after running replaceWith
I use this plugin: http://bootstrap-confirmation.js.org/ Segue Jsfiddle: https://jsfiddle.net/oq0zcn94/79/ After clicking the "replaceWith" button, the "Confirmation" button no longer works. Follows…
jqueryasked 6 years, 4 months ago Matheus Miranda 5,375 -
1
votes1
answer22
viewsDoubt Syntax error in PHP / jQuery function
I’m consuming a Webservice on a client’s website. i get the url return, filter the way I need, to display only the championships on condition: "SEX : M ""MODALITY : 2""CATEGORY : 4" Being all true,…
-
1
votes2
answers139
viewsProblem with Ajax and php
I’m doing a test with ajax and php, but it’s returning a value nothing to see test2.html <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8">…
-
1
votes1
answer59
viewsDoubt how to separate returned items from a web service
I have a site in Wordpress and in it I am consuming a Web Service, I created a function to filter the championships based on some information: Sex : M Modality : 2 Category : 4 If they are all true,…
-
1
votes1
answer2592
viewsExecute method/function when loading page
It’s not duplicate that: How to run a jquery script when loading a page I have a function that lists a content in div: function listar() { alert("listar"); // alert para saber se está sendo chamado…
-
1
votes1
answer240
viewsWhy doesn’t the ajax work?
I have a code that does what I want, but refresh the page. I have tried several ways to use ajax to send the data to the database, but it still doesn’t work, and I have 3 questions about ajax: 1 -…
-
1
votes1
answer48
viewsFailed to Replace ID with PHP Team Name
I am consuming a web service in php, I created a function to compare championships and return me the id of the teams that will play or will play, in another url, I have the name of the teams and the…
-
1
votes1
answer503
viewsTwo Ajax requests in the same function
When loading a page, I have two Ajax requests in sequence that fill two select s with options coming from different tables in the database. But only the first is executed, the second does not even…
-
1
votes0
answers2743
viewsAjax request with Authorization header
I’m trying to make an ajax request but it needs a BASIC authentication, follow my code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>…
-
1
votes2
answers147
viewsJavascript - Change return value using setTimeOut
Good staff, I needed to change the return value by clicking the button, i.e., first the click would have to return false and past x segundos would have to return true and proceed with the event. The…
-
1
votes2
answers70
viewsChallenge create menu with ajax() request
json product.json file { "produto":[ {"categoria": "#home", "nome": "home"}, {"categoria": "#fotos", "nome": "fotos"}, {"categoria": "#contato", "nome": "contato"}, {"categoria": "#perfil", "nome":…
-
1
votes1
answer144
viewsExport a Jquery bootgrid to Excel
I searched here on Stak and online, and I have seen some articles and tips on how to export an HTML table to excel. But in my case, I think it’s a little different because I’m using Jquery Bootgrid…
-
1
votes2
answers1101
viewsDisplay modal after form validation (fields filled)
I have a form with several fields that are mandatory. By clicking submit, validation is performed using jquery validation and being ok, send to the controller (ASP.Net MVC). I need that after the…
-
1
votes1
answer28
viewsLoad decimal configured data
I have this function, it works, it brings the necessary data to appear in the input, however I wanted it to bring in decimal, if it is 10,00 it is appearing only the 10 How can I correct? function…
-
1
votes1
answer258
viewsProblem making inputs appear and disappear with jquery
I need to do some inputs on my form of the mobile version are hidden and displayed by clicking on the button called Busca avançada I created a code jQuery but it’s not working I don’t know what I’m…
-
1
votes1
answer1014
viewsOpen PDF Base64
I have an application that generates a PDF in bytes and converts it to ToBase64String and sends astravés of a JSON for javascript to open, but on Chrome it cannot read this file and present the PDF…
-
1
votes1
answer77
viewsDate Picker Jquery display in d/m/Y format and write to database Y-m-d format
I am using this datepicker in my project, already this configured as you can see below the Dateformat in d/m/Y format, more like when I went to save in the bank it would convert to Y-m-d format, how…
-
1
votes1
answer146
viewsEdit the text of a div and her children by clicking
How to edit a text div or your children by clicking on the text, with Javascript or jQuery? Example, by double-clicking on Text here it is possible to change the text and/or delete it #alterar…
-
1
votes1
answer55
viewsJavascript - window.innerheight - Browser Safari
Window.innerheight does not work in Safari browser. When I scroll on the page and the element arrives at a particular page location it adds a class in HTML, in all other browser that code works.…
-
1
votes1
answer1701
viewsHTTP Basic Authentication with AJAX and php
I am trying to do a simple password authentication using HTTP BA. follow the codes: login.php <?php if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']))){…
-
1
votes1
answer46
viewsRun Jquery on multiple inputs
How I would run jquery with multiple input fields to be changed? I need to place the quantity of each product by clicking on .Minus and . plus I have this HTML <div class="quantity"> <input…
jqueryasked 6 years, 3 months ago Wagner Martins Bodyboard 698 -
1
votes1
answer43
viewsThe "ON()" is not acting as expected, why?
Dear friends, I am a student and curious in the subject, not an experienced programmer, hence my question. Come on, JQUERY’s "ON()" method can be associated with several types of events ("click",…
-
1
votes1
answer86
viewsCapture rel of each clicked link and add to the value of an Hidden input
I have the following structure, I need to create something "similar" to a shopping cart. When creating a link I need to take the rel of this link and go adding the value of the Hidden input,but I do…
-
1
votes1
answer52
viewsI added a class with JQUERY and tried to use it to trigger a function, but it didn’t work, what’s wrong?
Hey there, guys! I am an industrial designer (designer and illustrator) by training and not a programmer, but I love learning and programming, you see, I’m curious! I’m experiencing a plugin from…
-
1
votes0
answers453
viewsCoin mask, error without thousand, inputmask
I’m using the inputmask plugin. I have two cases, when I Seto 4.5 I expect the mask to appear 4.50 and when Seto 10000.5 I expect it to show me 10,000.50. But 4.5 shows me 40.50 , how do I show…
-
1
votes2
answers506
viewsJS - How to get the Element selector or or its tree?
Hello, I’m trying to make a function that by clicking on an element I can either catch the tree(all parents) of the element (up to the body or a specific tag), or take something similar to the "Copy…
-
1
votes1
answer153
viewsTypeerror: $.event.props is Undefined
I have a slider like this for example: http://themes.audemedia.com/html/servereast/vps-slider-6-plans.html In my case it is presenting the following error in the console when I click on the…
-
1
votes1
answer68
viewsParent element Child account in DOM change
A div receives a new paragraph each click, jQuery checks if there has been a change in the DOM, the event is called normally but is returning the message: UNDEFINED. The check does not work with…
-
1
votes1
answer50
viewsCalculate items from a table
I need to calculate table items and show in a given field of my page. Currently it is like this: <div class="pacientes"> <div class="pacientes-header"> <i class="fa…
-
1
votes0
answers45
viewsEvent to calculate searched items in the table
I need to calculate table items and show in a given field of my page. There is a search field with some filters, as it is researched appear the patients in the table, with the event I wanted to hear…
-
1
votes1
answer860
viewsTake data from a selected row of a dynamic table
I have a table, which I enclose the data dynamically in a table. I include in this way, I include in the first column the checkbox: $("#tablepesquisaprodutos").append("<tr class='item'>" +…
-
1
votes1
answer104
viewsAlphabetize + numeric dynamic list
Hello, I’m trying to sort a list by date-char. I need it in descending order. I don’t know much about javascript/jquery, but from my research, I got to the code below. But he is returning me the…
-
1
votes1
answer446
viewsReplace Special characters
I need to take out the special characters coming from an input in jquery, I am doing so but it is not working. How would you solve this? $("#cnpj").focusout(function(){ // Converte o texto para…
jqueryasked 6 years, 2 months ago Wagner Martins Bodyboard 698 -
1
votes4
answers958
viewsSend form without close modal
I have a page with job opportunities, when I click on a button it calls a modal and displays a form where when sending the information I need it to not reload the page and display a confirmation…
-
1
votes1
answer883
viewsrecover id value from select and get the selected value from that select
Hello, my question is to store an id and a select and options value in a variable. have that structure: <div class="col-sm-6" id="results"> <select class="form-control" id="1">…
-
1
votes1
answer72
viewsFunction going into loop for no reason
I have a script to increment a value in a input multiplication when + or - is pressed. It is working as expected as long as it is not phocus in the input multiplication. At each phocus in the input…
-
1
votes0
answers288
viewsJavascript - Remove the event by clicking a button
Good staff, I have the following problem: as the following image shows, I have a set of buttons to move forward and backward the process sequence. However, exactly in this part, I need you to click…
-
1
votes1
answer78
viewsHide and open div under certain conditions
I’m having trouble opening and closing a particular search bar. I need to open a div while Focus is in the field and take while you don’t have it, but when you click on div open source cannot be…
-
1
votes1
answer180
viewsProblem sending JSON by ajax to PHP
I’ve been trying to solve this problem for a couple of days, and I saw some questions from this site, but none of them solve the problem. I’m putting Ajax in the login of my TCC, but it will not, no…
-
1
votes1
answer103
viewsHow to create the mechanics and appearance of the zoom effect used in the Reveal.js framework?
Example: Zoom of the Reveal Goal: Study the mechanics and appearance of Zoom with the best algorithmic solutions. - Of the problem of appearance: 1 - When inspecting the tag < Section >…
-
1
votes2
answers48
viewsMy function is not running on page loading
I’m having the following problem. I have the following function function sortTable() { arr = JSON.parse(localStorage.context_data); $('#tableLemos th').click(function () { console.log("funcao…