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
-
0
votes2
answers67
viewsjQuery bring value from Mysql table
I’m setting up a music list register for a karaoke site. It works like this: Search for pre-registered music Take this song from input and insert it into a li list I have the following: <input…
-
0
votes3
answers411
viewsPick last element attribute date from a list
Good morning guys, I’m riding a sisteminha that by clicking a button I add a <li> in the last record of the line, but each <li> has a data-id numerical for differentiation, i.e., I would…
-
0
votes1
answer161
views -
0
votes3
answers785
viewsReturn Focus to the window that opened the popup
I have the following code that opens a window popup janela.php where I receive some data from the database: <script> $("button").click(function(){ window.open("janela.php", "_blank",…
-
0
votes2
answers3778
viewsAdd element after element with jQuery
How can I add another tag <li> ... </li> after the last with Jquery? I have installed a plugin "Jquery Custom", and would do it there. <div class="col-sm-5 col-md-5 social-media…
-
0
votes0
answers117
viewsSend data stay on the same page
I would like my input’s text DE/PARA to write to my xml file (write) When I click send when I go to my xml file ,it even appears in the file details the date and time I clicked to send , and when I…
-
0
votes0
answers80
viewsHelp with jQuery UI slide ranger
I have a slider ranger jQuery ui it works normal but the problem is that when I’m on mobile(by mobile) I can’t drag the slide so it works have to click on top. $(function() {…
-
0
votes1
answer196
viewsError 403 on request via $.ajax to instagram
Does anyone know why this request via error 403 ajax and URL works normally? instagram changed their api and I found this code that serves as a media pagination, when I request via ajax it from the…
-
0
votes1
answer369
viewsBlur event problem with Submit button
Good afternoon, I have a form, it has a text field that triggers the event . Blur that takes the name typed and returns an id with ajax, picks up the saved id in another Hidden input, the problem is…
-
0
votes1
answer142
viewsHide and show according to button ID
Guys, I have a Jquery, JS problem I have a set of buttons with the initials of each name, I would like to make them appear with your Ivs when clicking and when click on another disappear the…
-
0
votes1
answer139
viewsInsertion of HTML elements within another HTML Generated with Jquery in the same function
In my following code below I would like to insert the data coming from the ajax request, along with the append() HTML only in the elements whose Hidden input id was equal to the item.id (of…
-
0
votes4
answers1294
viewsHide or display HTML table line with Jquery
I have a SELECT like this: <select id="filtro-uf" name="filtro-uf" class="form-control"> <option value=" ">Selecione</option> <option value='AC'>Acre (AC)</option>…
-
0
votes2
answers973
viewsBrowse table with N lines with FOR and find specific values
How to go through a table with N lines and find the specific values of each Dropdownlist ? Example of the table below: I tried with the code below, but without success. function ValidarStatusGrid()…
-
0
votes2
answers84
viewsindexof is not recognized inside the for
Hello I am trying to run this code so that it captures all the links of a page, it works all ok, the problem is that I want to find links that contain a certain word using index but is giving the…
-
0
votes1
answer200
viewsRecover captured id with JS in modal
I have a button calling a modal for exclusion confirmation, this is in a table, each row a button to delete the registration of that line But the way it is he always deletes the first item from the…
-
0
votes0
answers96
viewsAjax does not return callback on ios
I have the following problem, when I try to run my code it arrive in beforeSend but it does not return me if an error happened or was executed successfully, someone could help me with this. On PC…
-
0
votes1
answer56
viewsCounter from a value
Hello, I am creating a time counter, to make a music progress bar. I am using the following code. However, this counter starts counting at 00:00 as obviously, but I would like it to start counting…
-
0
votes1
answer153
viewsReturn value with Xmlhttprequest
dataPacket: function(type){ aTurn.packet = new XMLHttpRequest(); aTurn.packet.open('GET', 'teste.php', true); aTurn.packet.send(); aTurn.packet.onreadystatechange = function(){…
-
0
votes1
answer28
viewsMousemove reset counter jquery
With this code, the page redirects after 5 minutes if there is no action, and this only happens in refresh or when changing pages, but, intended that the counter reset the movement of the mouse and…
-
0
votes0
answers106
viewsCalling Jquery Validate in Submit
I have a validation of two fields using the remote of jquery Validate to avoid duplication in the. Example: Campo A = Teste Campo B = Minas Gerais I added the remote in the campo B and the initial…
-
0
votes1
answer117
viewsHow to pick up part of the string from the size of a word?
I want to take only the name of the discipline of an H1 containing the following text: "ENF N1A METHODOLOGY OF SCIENTIFIC RESEARCH (MES)". In this case what interests me in this string is the value…
-
0
votes1
answer134
viewsGenerating Dynamic Table with Jquery
I’m having the following problem, I’m doing a search engine ,to search for the client’s name ,so far so good ,I was able to bring the clients but they are in an array ,my problem is how do I divide…
jqueryasked 7 years ago Robson Oliveira 155 -
0
votes0
answers53
viewsChange Jquery is being triggered without change
Hello, I have a JS code that gives the value for a price slider, and in this JS has a change that is being triggered and inside the change has a Rigger that triggers another part of the JS that does…
-
0
votes1
answer79
viewsIs it possible to change the css3 of the table (in Jqgrid) to change the positioning on the page?
It is possible to change the table positioning on the Jqgrid library page? When the Jqgrid table returns too much data, it creates a vertical scroll bar. When going down to view the last records the…
-
0
votes4
answers7998
viewsAdd and remove classes by clicking Jquery
Good afternoon, I would like to add and remove the "active" classes by clicking on each option, and show the contents of each, follow the jsfiddle example. Thank you Html: <ul> <li>…
-
0
votes1
answer74
viewsJqgrid put phone mask on column output in Jqgrid?
Code of the table that mounts JQGRID: var grid = $("#jqGrid").jqGrid({ url:'/Portaria/Agenda/Listar', mtype: 'GET', datatype: 'json', colModel: [ { label: 'Id', name: 'id', width: 50 }, { label:…
-
0
votes0
answers94
views -
0
votes2
answers313
viewsFocus Textbox function and Check if it is filled
I need a function that when you click on the textbox if it is empty it becomes a color, and if it is filled change the color, but only when you click on it, how can I do it? If you haven’t filled in…
-
0
votes1
answer34
viewsThe change() is not acting as expected, why?
I am using CHANGE() to capture a STRING ID (VALUE in a FORM) and using that ID to hide or show the selected DIV. The first step in the selection box (SELECT OPTION) occurs as expected, but when I go…
jqueryasked 7 years ago Alexandre Soares da Silva 29 -
0
votes1
answer69
viewsHow to receive ajax data in a vector?
Hello guys I’m trying to do this, but unsuccessfully: HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head>…
-
0
votes2
answers98
viewsTake input value to run in the for loop
I have the input QtdParcela, and I want my loop generates data up to the value entered in input. Follow part of my code: In the for, where is 10, I want you to receive the value that the user will…
-
0
votes0
answers451
viewsBug loading Imagnes with Owl-Carousel
Good morning, you guys, Please help me with this problem and I appreciate it. I have a list of images and data that are not immediately loaded and synchronized when loading the page for the first…
-
0
votes2
answers906
viewsEmail validation together with password with jQuery
I need to put out an APB when "all’s well" on my form. The situation is that I need to check without the email has "@" and "." and also along with this if the two password fields have equal values.…
-
0
votes2
answers191
viewsCalculate the total of each row in the table
I’m trying to use Javascript to dynamically calculate my prices multiplied by the quantities and result in the total for each row, however it calculates the overall total and plays in the last field…
-
0
votes1
answer487
viewsCarousel with different display duration for each item
How could I make a Carousel with an element, each element will have a different display duration? Ex.: One (element) of 5 seconds; other 8 seconds. I managed to do with the Slick of jQuery, however…
-
0
votes0
answers57
viewsHow to use jQuery inside component - Angular
So I’m having trouble executing jQuery (initialize the tabs component of materialize) within a specific component. For now the code is like this: home-logged.component.html <div class="row">…
-
0
votes1
answer74
viewsGet specific JSON value
I have an API that returns the corresponding image of a status, however I’m having trouble getting only the field 'camiofoto' in my API answer. Response from the API:…
jqueryasked 6 years, 11 months ago Matheus Arruda 482 -
0
votes1
answer76
viewsLink with ajax result does not accept click
I have the following matching ajax call: $(document).ready(function() { $(".atualizarAjax").click(function(){ var id = $(this).attr("data-id"); $.ajax({ type: 'GET', url: "<?= HOME…
-
0
votes1
answer36
views.load DIV from another site and replacing URL after load
Hello, my problem is this. After loading a div from another domain, I want to change the Urls of these images from the uploaded div to my domain. Ex: <img class="InfoBarSmallElement"…
-
0
votes2
answers859
viewsFill Bootstrap modal with a div value
I have a table in which the loader value inside it through PHP needs to be in the value of some inputs that are in a modal boostrap window. I’ve tried several solutions, but they don’t work. When I…
-
0
votes1
answer1701
viewsJavascript dynamic form
I have a project where the form has to be dynamic, for example when filling name and age appears other fields like the address and so on, I would like some tip on how to do this with…
-
0
votes1
answer34
viewsCombo filter with Jquery
I am using the code below to filter values between two combos. The value of the first does not appear in the second: $("#treinamento").on('change', function() {…
-
0
votes1
answer79
viewsSort date on grid chronologically?
$.fn.dataTable.ext.search.push( function( settings, data, dataIndex ) { var min = $('#min-date').val() ? $('#min-date').val().split('/') : null; var max = $('#max-date').val() ?…
-
0
votes1
answer82
viewsReturn Json with Xmlhttprequest
How to popular a table with a JSON using XMLHttpResquest POST? Jquery var xhr = new XMLHttpRequest(); xhr.open("POST", "/EnvioEmail/PlanilhaPaciente", { area: "Sistema" }, true);…
-
0
votes1
answer292
viewsHow to sum a database record plus input with Jquery
Hello how do I make this sum with Jquery: have this table vehicles in the database with the review column of 500 in the form when I choose the prefix MT-02 I want it to sum the input of the exchange…
-
0
votes1
answer51
viewsajax result in php session
I’m filtering a Cpf/cnpj through imput/datalist and checking the result with ajax. I intend to bring the result in 2 sessions php but I’m not getting it. The page containing the filter: <!doctype…
-
0
votes5
answers349
viewsEvent by pressing the button
Would there be any way to detect the touch pressed on a button? The code works normally on desktop, but when will I test in mobile does not act. Use the Jquerymobile is not an option. var timeout =…
-
0
votes0
answers80
viewsChange father’s height by son’s height
I would like to do this in CSS: $("div.slider").height($("div.slider div.slide").height()) it is possible? The goal is to create a slide where the height of the div container (slider) is always, and…
-
0
votes2
answers125
viewsHow to disable an option when creating it with jquery
vetorAux = ["CARROS","Ferrari","Porshe"]; vetorAux.forEach(function(item){ $('select').append('<option>' + item + '</option>'); }); <!DOCTYPE html> <html> <script…
-
0
votes1
answer49
viewsgo to the next div excluding another element
I have the following HTML structure: <div class="slider"> <div class="slide fade ativa"> <img src="_img/_banner/_site/bg_1.jpg" /> <span>Este é 1</span> </div>…