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
votes1
answer31
viewsJQUERY - Load in form with editor
It is possible to play a text all misaligned and full of spaces to the left, above and below. Let it all align and without spaces? For example: texto texto texto texto texto and leave like this, all…
-
0
votes2
answers112
viewsJquery append() and html() problems
I’ve seen another example here on the forum but it didn’t help me much by the amount of items inserted in div. $carrinho = '<div class="carrinhoMais"> <a…
-
0
votes3
answers65
viewsOptimize the way to remove classes of elements
I have a sequence of lines to remove classes of various elements. There would be a more sophisticated way, perhaps with less code to perform the same as the code below?…
-
0
votes0
answers61
viewsIs there anything like command priority in jquery?
I am creating a page, and on this page there is a side menu, and on top of the side bar there is a menu icon, which when clicked makes the bar appear and disappear, to disappear I am using "display…
-
0
votes1
answer1720
viewsAssign href via jquery
I have an element in my Layout and I’m trying to set href via jquery, but it won’t. The condition is in my index. Follows the code: Layout <div class="three wide column dindex"> <div…
-
0
votes1
answer964
viewsSort a list <ul> by the "value" attribute of <li>?
Talk personal, all right? So I got a problem... I have a "sort by" button, in this case, of higher price and lower price. What I need to do is sort the elements of a list <li> for his…
-
0
votes1
answer81
viewsjquery store value during loop and compare with next value
I need to compare values that come in a json object and group cases to be equal. Ex: {nome: andre,qt:"2"},{nome: andre,qt:"3"},{nome: marco,qt:"2"},{nome: marco,qt:"5"} I need to group into separate…
jqueryasked 6 years, 4 months ago Carlos Lopes 185 -
0
votes0
answers63
viewsReusing a jquery code for Wordpress post uploads
I have a code, which loads wordpress posts via ajax. Works very well in all templates. Index, tag, categories, etc. What strikes me in this code is that apparently the upload is done through the…
-
0
votes1
answer301
viewsHow to capture an object that has a modified attribute value
I have an object that can be updated from a drag-drop interaction with a grid-stack object (https://github.com/troolee/gridstack.js#questions-and-Answers). Depending on the object update (change of…
jqueryasked 8 years, 4 months ago Bruno Nascimento 489 -
0
votes1
answer49
viewsEdit a contract template with jquery
I wonder if it is possible to add a contract within a textarea and define some fields that can be changed in this contract. For example: I have {{name}} {address}} I want to allow the user to drag…
-
0
votes1
answer590
viewsDoubt about ajax url
I am developing a simple crud with ajax and jquery and came across the following question... $('#btnDelete').unbid().click(function(){ $.ajax({ type: 'ajax', method: 'post', async: false, url: url,…
-
0
votes0
answers58
viewsScreen to visually relate items between two columns
I’m developing a screen in HTML, CSS and Jquery to relate two columns: one with the releases of a bank statement and the other with the release type, so I click on a release in the first column and…
-
0
votes1
answer24
viewsText is selected when opening notification
Follows code: $("#click_notifications").click(function () { if ($('li.nav-item.dropdown.dropdown-notifications').hasClass('open')) {…
-
0
votes2
answers67
viewsConfirm Aspect Ratio of an image to trigger function
I have an image upload system in Php and when images are posted, they create thumbnails. Today, these thumbnails when clicked call a jquery function to display it in a modal. I need to confirm if…
-
0
votes1
answer60
viewsResponsive Website with jQuery
Guys I’m in doubt is better to make responsive website using media queries or jQuery?
-
0
votes1
answer457
viewsRedeem ID in Ajax return modal
I’ve searched a lot more I could not get anything like that. I have a registration that returns lastInsertId() and this registration is done with Ajax. No Success (Ajax) after completing the…
-
0
votes1
answer27
viewsUpdate div only when data is changed
I do not know if it is possible, but I am working on Fullcalendar. I have already managed to register and change the date using the eventDrop, So far all right, but next to the calendar, I created…
jqueryasked 6 years, 4 months ago user24136 -
0
votes0
answers217
viewsHow to capture the click and drag of a DOM object
I have a div that wants to fire a function if the user clicks and drags. A div can be positioned in different places on the grid. I use the gridStack plugin. I want to get the final position of the…
-
0
votes0
answers1404
viewsBack to Top jQuery - Uncaught Typeerror: Cannot read Property 'top' of Undefined
I have the script to get back to TOPO. On the home page of the site, it works perfectly, however, on the internal pages it does not go up and presents the following error: Uncaught Typeerror: Cannot…
jqueryasked 8 years, 3 months ago Sr. André Baill 6,946 -
0
votes1
answer747
viewsHow to add limit value along with jquery Mask?
Guys I’m using the mask plugin of this link: https://igorescobar.github.io/jQuery-Mask-Plugin/ I use the following jquery to make the mask: $('.decimal').mask('000,0', {reverse: true}); However I…
-
0
votes1
answer543
viewsHow to change the color of the scrollbar by Jquery
I want to change the color of the scroll bar only when the user scrolls the screen. I tried the code below but it didn’t work. How do I? $('body').scroll(function(){ setTimeout(function(){…
-
0
votes1
answer145
viewsError picking JSON from text - JQUERY
I’m rescuing a json of a text, however, the following error occurs: XMLHttpRequest cannot load http://www.vagas.com.br/vagas/feeds.js?q=engenheiro. No 'Access-Control-Allow-Origin' header is present…
-
0
votes2
answers6574
viewsTo enable and disable a text type input after a value selected in the combobox
My jQuery < script > $(document).ready(function() { var tipo = $("#idTipoParticipante option:selected").text(); if (tipo == 'Personagem') { $("#enable").click(function() { // habilitando o…
-
0
votes1
answer383
viewsReturn php to Jquery
I need a JS variable that picks up the result in a . load Jquery from a php file. Jquery $.ajax({ type: "POST", url: "_required/sessaoCarrinho.php", data: {idProduto:idCampo, novaQuantidade:…
-
0
votes2
answers82
viewsKeep Active Script Click
I managed to execute a script where when making mouseover(Hover) on a given object, it executes the desired action, but I would like to execute the action with a click and I am unable to do neither…
-
0
votes1
answer244
viewsAdd Row in jquery with Sessionstorage
good afternoon I am trying to make a form where save some values using sessionStorage and when returning the code, I intend to display the values in an html table, but the numbers do not show in an…
-
0
votes0
answers25
viewsValidation form jquery
Well I am validating a form in the service, but I am with some difficulties, I am using the plugin validate of jquery, you know a way in jquery more efficient and more attractive ?
jqueryasked 6 years, 3 months ago Leonardosfarias 21 -
0
votes1
answer38
viewsFilter elements according to typed Jquery/Javascript key
I have an input that the user type the filter you want, every keystroke I want to perform a filter, if the typed text contains in the array I want the #div_1 to be displayed otherwise I want the…
-
0
votes1
answer1223
viewsTake bank dates , and "Highlight them" in a Jquery Calendar
I have a code with two dates that will mark something, such as a week event for example, one is the start date of the event and the other the end date of this event, to facilitate the user view I…
-
0
votes1
answer27
viewsFeed div after receiving new data
I started to implement a chat and needed to update the div where the messages are inserted, but when I get new messages I need to update the page to have access, and if I set a timeout to 10 in 10…
-
0
votes0
answers97
viewsJquery Carousel disturbing the display: inline-block
This is the page: http://www.magicforbaby.com.br/loja/produto.php?p=1 The code is this: echo "<div class='fotosProduto'>"; require_once "_required/carousel.php"; echo "</div>"; echo '…
-
0
votes2
answers554
viewsCheck if working time is in the chosen time range Jquery/ Javascript
How to check if the schedule_working is within the chosen range? Example: a bar runs from 08:00 to 13:00, a user has chosen the time interval from 12:00 to 21:00, such as checking that this bar is…
-
0
votes0
answers375
viewsonChange on jQuery Input Mask does not work
I have an React component for user registration, in some of the fields I added a Jquery mask, but since I added the mask, the onChange command stopped working (only in the fields with the mask) one…
-
0
votes3
answers48
viewshow to take the initial and final schedules and store in two variables with javascript?
how to take initial and final schedules and store in two variables with javascript? var hora1 = '9h - 22h' var hora2 = '12h - 21h' var1 = 9 var2 = 22 var3 = 12 var4 = 21 using substring could not…
-
0
votes0
answers334
viewsSemantic Modal UI Submit Window and Form Validation
I have a modal window using the semantic UI framework, I can easily use Helper @Html.Beginform it validates 1 field, but not the others. I need to do this validation via jquery when I do Submit…
-
0
votes3
answers73
viewsError in jQuery animation
<script> function moverFoto(){ $('#janela').animate({left:"-200"},1000); } $( function(e) { setInterval(moverFoto,500); }); </script> setInterval only runs once and to…
jqueryasked 6 years, 3 months ago Eduardo Candido 35 -
0
votes1
answer288
viewsCheck user Age using Jquery(datepicker) & JSP
Needing to implement a javascript function where calculates user age, informs an alert if it is under 18.Use Jquery library along with JSP,where datepicker is automatically loaded given a framework…
-
0
votes1
answer904
viewsChange Y-axis values in Chart js
How to change these values of the Y axis in Chart js, these values from 5 to 50 were automatically placed by the plugin, wanted to modify them.…
-
0
votes1
answer171
viewsJquery with dynamic html code
I have an Ajax function that when added, inserts/ updates a page. php $("#recarrega-adt").click(function(event) { $.ajax({ url : 'classes/consulta-aditivo.php', success : function(txt){…
-
0
votes0
answers32
viewsBootstrap 4 jquery (not slim version) bugs
I am with a web project that have made the front using BT4. In the Docs of BT4 is presented the CDN of jquery.slim as necessary. I would like to use the $.ajax function of jquery, but it is not…
-
0
votes0
answers92
viewsAre you out of your league?
I’m starting with Javascript and a friend told me that jQuery is being set aside, is that true? If so, why is he being left out? What would be an alternative to jQuery?
-
0
votes0
answers32
viewsJquery does not work with new HTML elements
I have an HTML form with several elements (inputs text, range, image, etc). When I click a button other elements are added dynamically, but in these new elements, jquery events do not work (onclick,…
-
0
votes2
answers1255
viewsTRANSPARENT NAVBAR
Personal a doubt half beast, I’m making a Landing page and wanted to use a navbar style of this site here: http://themes.uconnect.pk/cosmic/standard-slideshow-inverse-nav-darken.html When it’s at…
-
0
votes2
answers190
viewsHTML Select (active disabled attribute) - How to display a message when mouseover is triggered?
Good morning, I am developing a menu where options are linked by selects. All selects are disabled, and will be released only when a radio master input is triggered. So far it’s working okay.…
-
0
votes0
answers58
viewsWhat is the best way to save data in real time?
Guys, can you tell me how to best save data in real time? For example, I have a news portal and need to save every access I receive and show on a private panel, but in case my site has 30,000…
-
0
votes2
answers152
viewsWhat is the reason for the error since Jquery is being imported
I’m using Materialize together with Angular, but the dropdown menu is not working. With the following error: Uncaught Typeerror: $(...). dropdown is not a Function functions.js:6 The file funcoes.js…
-
0
votes0
answers31
viewsHow to uncheck a checkbox when closing the div that shows what has been checked.?
After I mark the checkbox options, I click on "ok" it brings me the options I marked. giving the option to delete it. But if I delete, the checkbox is still marked.
-
0
votes2
answers134
viewsProblem with the notify plugin
I’m having a little trouble viewing the plugin notification when the form runs. The form itself is perfect. What I understand is that when it will appear not from time and the notification closes…
-
0
votes1
answer52
viewsIf script condition does not recognize returned value
Hello, I have following code: function addUser(value){ var adduser = value; var useremail = localStorage.getItem('email'); var userpassword = localStorage.getItem('password'); var acao =…
-
0
votes3
answers81
viewsHide text between javascript keys
How can I hide a text between keys in my div Ex: <div> Hello {World} </div>