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
answer212
viewsHow to get the value <td> of a table from another table?
I have a table with checkboxs to mark and deselect the table rows. It turns out I have another table, which is a summing up of accounts. I want every time the user marks a checkbox, Jquery finds the…
-
1
votes1
answer202
viewsGet input html filled with jQuery
I need to take html from input as text, like this: var exemplo = 'input type="text" name="input" id="input"'; However, I need to get the input filled, would be like this: var exemplo = 'input…
-
1
votes1
answer139
viewsCheck Input Size and display label according to expression
I have a function that checks if a field is less than 3 when focusing (clicking) on the input Email. In short: If CPF and RG is less than 3, displays the label[for="label-custom-field2"] and…
-
1
votes0
answers172
viewsEventclick Full Callendar pass id to PHP
I’ve managed to get the variable id in a div with this $('#eventID_faturar_outro').val(event.id); How can I pass the value of Event.id for php via jqueery, so I can check if there is an event id…
-
1
votes0
answers24
viewsResize image before sending to server
I have a screen in my application that upload some images. Until then everything was ok. The user sends the image, has the option to "cut it" and then sends it to the server. Only now, testing on…
-
1
votes0
answers32
viewsjquery.maskMoney and jquery.Mask inserted in the same file: conflict
have 2 fields in the form: <input type="text" name="telefone" id="telefone" required maxlength="14" /> and <input type="text" id="valor" name="valor" required class="real" /> The first…
-
1
votes1
answer964
viewsSlow loading with Jquery Datatables plugin
I am using Jquery Datatables in a small system and everything was fine until I came across a listing of almost 2500 records... The point is that it takes a certain amount of time for the information…
-
1
votes0
answers44
viewsJavascript Pushstate/Popstate turns off other scripts
I have this code on my site js/pushstate.js: $(document).ready(function() { var nav, conteudo, fetchAndInsert; //nav = $('div#navbar'); nav = $('.menu'); conteudo = $('#conteudo'); fetchAndInsert =…
-
1
votes0
answers39
viewsmusic playlist with play option, and download
I would like to know how I make a music playlist of this type. with the songs below each other, the option to give play to listen, and another option to download one by one. That in case I’ll take…
-
1
votes2
answers560
viewsdatepicker does not work in dynamic form with Js
Guys, I built a dynamic form using JS. Inside this form I have several input with the class data, where I call datepicker. But they don’t work, someone can help me with this? Follow the example…
-
1
votes0
answers52
viewsMove to ul empty sortable jQuery
I have a page with 3 ul sortable, I can’t move the div to empty ul, they could check my code. In the example image I cannot move the content of the div Prospect to the empty ul Negotiation and…
-
1
votes1
answer155
viewsCheck date attribute
Can you tell me if it is possible to check whether an image has an attribute data? This only with the img selector, not by ID or class. What I got: <img data-src='http//.......'/>…
-
1
votes1
answer196
viewsSlide toggle with multiple Ivs, each div makes its own slide
Guys, I have a problem creating a slide for each div. I’m making a code that will create x equal Ivs, but with different contents and need each one to have a button to perform a slide up with your…
-
1
votes2
answers43
viewsHow to extract the link title from a responsive menu?
I have the following menu structure: <ul id="responsiveAccordion" class="showedmenu"> <li><a title="Página Inicial" href="/">Página Inicial</a></li> <li…
-
1
votes2
answers1136
viewsPerform search inside javascript object and return value
i need to do a search inside a javascript object that brings me the sku according to size and color, vcs can give me a light? Example: I need to insert in a variable the product sku that has the…
-
1
votes1
answer106
viewsButton to play audio dynamically
I am developing a button to play audio in certain parts for my site, for example to have the narration of certain paragraph, I want to do this dynamically, for example by placing certain class and a…
-
1
votes1
answer1134
viewsHTML Conflicts in two javascript files
I’m having trouble calling two files .js in my html page, because the two do not work together, only separately, I believe it is a conflict problem, what add an effect of Alert custom on my site,…
-
1
votes3
answers614
viewsjQuery check php database field
I have the following button: <button type="submit" class="btn btn-info pull-right"><? echo $titulo; ?></button> This button sends a form action, with the completed data. And I also…
-
1
votes1
answer186
viewsClear form fields when unchecking check
I have a form with a check that the marked shows a div with an input with the name of BancoFinanc, the user can fill in this input normally, but would like when unchecking the input, if filled in by…
jqueryasked 8 years, 3 months ago adventistapr 5,498 -
1
votes2
answers3869
viewsSkip line Javascript
I have this Javascript function that only allows the user to type 42 characters. Someone can help me, I need every time I reach 42 characters to skip a line instead of blocking typing. My problem is…
-
1
votes1
answer38
viewsJquery expands: "jQuery321017184022590797698", what is this?
Observing the window object by the command, of course with jQuery loaded on the page: console.log (window); We have the property Function $, known as jQuery global for those who use it, I realize…
jqueryasked 5 years, 8 months ago user78859 -
1
votes2
answers602
viewsGet the date before an informed one
var date = '2019-01-01'; var d = new Date( date ); d.setDate( d.getDate() ); document.write(d); Returned that: Mon Dec 31 2018 22:00:00 GMT-0200 (Brasilia daylight saving time) How do I now return…
-
1
votes1
answer83
viewsLimit characters in div and display points only if necessary?
I got the following: $("h2").text(function(index, currentText) { return currentText.substr(0, 100) + '...'; }); It limits the text of the H2 tag to 100 characters and displays the three dots at the…
-
1
votes1
answer35
viewsPlace icon in list using CSS
I made this script in jQuery to put a different icon depending on the extension that ends the href, but wanted to know how I can put the icon using CSS instead of tag <img>, 'Cause it looks…
-
1
votes0
answers214
viewsLike dragging Div to another column?
In the Below image, I have several columns where the user can drag the div and put it in another column, as illustrated in the image: I’m using Sortable of Jquery-UI. I can drag this div to the…
-
1
votes3
answers683
viewsFind elements of a class Eno jQuery and add a parameter to them
I need to do a function in jQuery or Javascript, which finds all items with a particular css class and add a parameter for this class, a different color for example. I will put on a button, after…
-
1
votes1
answer375
viewsTranslation PHP or JS
I have a page where I must translate. At first I had thought of translating with JS, to do something dynamic, IE, the person would click the button, I would call a file . json and perform…
-
1
votes4
answers761
viewsHow to simulate onclick checkbox
Good morning People, I have a form that is a datatable, and I have a button that marks or unchecks, all checkboxes of this datatable, by default these checkboxes are marked, i need that when reading…
-
1
votes1
answer508
viewsShow Json data inside an Html Form
I have a Grid with the edit button when I click on it it accesses the Controller and brings the data in a Json and "Theoretically" was to return this data in a Modal. When I type Url .... show/(ID)…
-
1
votes2
answers266
viewsProblem when redirecting page, after printing using jQuery
Guys I’m giving a window.print(); to print my page, soon after it I send the window.location to redirect the page, the problem and the page and redirect before the print command. I need to make the…
-
1
votes1
answer36
viewsSort 2 arrays with different sizes in jQuery
I have the following problem, in my scenario I am capturing the Ids of a checkbox, I have a list of JSON objects where I need to compare these Ids with the Ids from the list of JSON objects. The…
-
1
votes1
answer880
viewsjQuery - Using event click on div father and son
I have two div. I am trying to do the following. When I click on the father div it should return the Alert. But when I click on the div child nothing should happen. I tried something below but did…
-
1
votes1
answer175
viewsHow to return the dynamically inserted element id?
How to return the id of an element inserted dynamically? I don’t know where I’m going wrong. When the elements are already on the page, it works normally, but it was enough to insert them…
-
1
votes1
answer59
viewsTop Fixed Sidebar Ad - JQUERY
I liked the display of ads in the sidebar of this site https://exercicios.mundoeducacao.bol.uol.com.br/exercicios-gramatica/exercicios-sobre-os-tipos-predicado-predicativo.htm When scrolling the…
-
1
votes2
answers1068
viewsProblems with event click on jQuery, AJAX, and PHP
I’m having a bit of a complex problem and I hope you can help me. I have a code that makes a query (Via AJAX and PHP) and fills a table with the return of this query. So far so good. Everything…
-
1
votes2
answers875
viewsHow to update another page that is open in PHP, javascript or jquery
Good afternoon, everyone! I’m new to programming. Good! I would like to know how to update (refresh) another that is open through a function be it in php, javascript or jquery. Example: I have a…
-
1
votes3
answers520
viewsList array according to what was selected
I have a selectwith some cellular operators: <select name="valor" id="operadoraRecarga" class="form-control operadoraRecarga"> <option value="claro">Claro</option> <option…
-
1
votes1
answer116
viewsDo not colorize current date with Fullcalendar
I have a schedule in fullcalendar, and I’m trying not to color today.. note that it is in light yellow (Mon 1/4) Any hint?…
-
1
votes1
answer322
viewsPick up the next input after an input (Object)
I want to get the object of the second input. As I have more inputs with the 'check-date2' class, I want to pick up the element immediately after the first. HTML <div class="form_line">…
-
1
votes2
answers179
viewsShould I put "Event listeners" inside the "Document ready" function?
I am using an Event Listener to catch the click on an element with jQuery: $('#elemento').on('click', function () { ... }); My question is whether I should put this "Event Listener" inside the…
-
1
votes0
answers25
viewsWhat is the difference between using . on() and . click()?
What’s the difference between declaring an Event Listener with jQuery to pick up the click on an element this way: $("#elemento").on("click", function() { ... }); And in this other way:…
-
1
votes1
answer136
viewsProblem with events and functions running multiple times in jQuery code?
Hello. I’m having a very serious problem with events that are triggered several times by clicking a certain button. I have the task management system below: When I click on the status button (That…
-
1
votes1
answer492
viewsajax post with dynamic input
I have a form with a input that is created dynamically, follows below: <tr class="linhas"> <td align="right">Inicio:</td> <td align="left"><input name="inicio[]"…
-
1
votes1
answer1130
viewsAlert system with jQuery
Guys I’m trying to build a custom Alert system with jQuery. It is working perfectly, but I always have to forget the div in HTML. Is there any way for jQuery himself to do this? If it is possible to…
-
1
votes1
answer263
viewsFill in input with the day of the week according to the date in the previous input
I created two inputs. The first one assigned the pre-filled date in this way: <strong><label for="Data">Data Reserva</label></strong> <input type="date" id="Data"…
-
1
votes2
answers29
viewsI am unable to create a dynamic Jjquery Div
I’m a beginner when it comes to Javascript and jQuery and I’m trying to create a dynamic div, my goal is to create an Alert bootstrap whenever the button is pressed but I’m not getting it to…
-
1
votes2
answers97
viewsAccessing an element within the same element hierarchy
Next, I have this situation: <html> <g class="children"> <g> <rect class="child" data-id="xpto"></rect> </g> <rect class="xpto"></rect> <text…
-
1
votes1
answer43
viewsChange product color Mouseover
Good morning... I need a help and do not know how to do. I have an Ecommerce. On the initial page my products appear like this: I want, that as soon as the customer passes the mouse over the colors,…
-
1
votes1
answer79
viewsRevert animation in second click
I’m trying to reverse a simple animation when I press a button again. The first click animates a div removing its left margin, but when I press again I wanted to put the margin back in its normal…
-
1
votes1
answer111
viewsLimit characters and display points
I have the following code: if (i.link[E].href == "teste") { var u = i.link[E].type.substring(0,130) + "..."; } It limits the characters to 130, and displays the three dots at the end of the text.…