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
answer439
viewsDatatables - Default Sort
How do I have a table already sorted by a particular column in Datatable ?
-
1
votes0
answers39
views -
1
votes1
answer52
viewshow to force one dialog box to be above the other?
I have a dialog box that calls a 2, only this 2 needs to stay above the 1 how do I force this via javascript? or any other way, except z-index that I tried and is not going.
-
1
votes1
answer29
viewsaddClass inside this
I have this HTML: <div class="botao"> <div class="seta"></div> </div> In Jquery when you click the button, I add a class to it like this: $(this).addClass('botao_ativo'); How…
jqueryasked 7 years, 9 months ago caiocafardo 1,897 -
1
votes1
answer123
viewsAjax / Jquery - Select / mark an option disabled automatically
Fala galera! The following is, I have a dynamic page where the elements of the selects are loaded via Ajax according to the elements previously selected in other selects, type, for example, when…
-
1
votes3
answers480
viewsHow to load an ng-controller through ajax and inject it into the DOM
I am creating an application where I would like to load my modules through ajax. This application uses Angularjs to do the treatment of each module and these are injected into my DOM using Jquery,…
-
1
votes1
answer112
viewsHow to upload this created data to an edit screen
Next, I have this sign-up screen where clicking the "+" button will add text type inputs (as an attachment code) My problem is that this creation is dynamic, one can add either 1, or 2,3,4.. or N.…
-
1
votes1
answer472
viewsHow to let a function run after some time?
I have a javascript code ( jquery ) and it performs a function when I move the scroll of the mouse, however, it performs the function several times when I take a whole turn in the scroll. I didn’t…
-
1
votes1
answer166
viewsmap jquery keyboard events - Accessibility
I would like to make an accessible menu, can be retracted with Esc and navigable by tab, what would be the best way to do? by keyup, keydown, someone would have a good example to mention?
-
1
votes1
answer686
viewsjQuery Datatable Print Details
I have a datatable with original data and details data, this detail data can be expanded as desired by the user, but I have a printing problem, when I use the function print datatable, only the…
-
1
votes2
answers1154
viewsHow to count the elements of a jquery li
Have to count the elements that are inside the li, but let it be by step, for example first take the li1 and count the elements that in the case have to go back 3 and then pass to another li.…
-
1
votes0
answers127
viewsPopular a select with php result using jQuery and cakephp
Hello, I’m trying to popular a select with the options that are returned, according to what the user selects in a particular select. The problem is that I’m a layman with jquery and I don’t know if…
-
1
votes1
answer63
viewsFill a select via jquery in cakephp
I made it a little easier, but it’s not working yet. Instead of assembling everything in javascript, in my action I assemble all html and in javascript I only pass the mounted html to my select.…
-
1
votes1
answer128
viewsSave uploaded file to Ajax in backend Node
Hello I have a backend in Ode and I’m getting this ajax request var arquivo = $("#assinatura"); arquivo.on('change', function (event) { if (arquivo[0].files.length == 0) return false; var data = new…
-
1
votes1
answer95
viewsParameters functions for click event do not work
I’m trying to highlight a text with the event click and then "slip" on the second click, I took the hint of a code that I had already seen on codepen , I am passing two functions to the event click,…
-
1
votes2
answers302
viewsChange label class (icon-font) with click
I am using iconfonts in a drop-down menu, where the link is as follows: <li class="abre-dropdown"><a href="javascript:void(0)"><label style="float:left;"…
-
1
votes1
answer11340
viewsFloating Div in Bootstrap 3 accompanying Scroll
Good morning! I have the following code: <div class="container"> <div class="row"> <div class="col-md-5"> <?php $hostdb = "**********"; $userdb = "**********"; $passdb =…
-
1
votes1
answer2866
viewsHow to prevent the user from closing a page without submitting the form, but without using a dialog?
I have an HTML page that has a form. I need to prevent that, after the user fills this form, they click any other button on the page other than "Save". I found a script that solved this, but it can…
-
1
votes2
answers49
viewsAuto-Complete with database values in input text type
Good evening, I need a code that when entering the input the user will see suggestions below that should be the values pulled from the bank. <input type="text" id="pesquisa" name="pesquisa">…
-
1
votes4
answers7010
viewsjQuery delete the last character typed in an input
I would like to know how to delete only the last letter typed in an input field. All the examples I found are cleaning the whole field val.
-
1
votes0
answers140
viewsHow to implement Favorites on localStorage?
I’m implementing a notification control project. On the page where you list notifications, there is a star in each notification to add it to your favorites, which is stored in the localStorage.…
-
1
votes1
answer40
viewsHow to analyze javascript error in Firefox DEV response
Using firefox dev, there is the console (Ctrl+shift+k), and within that console there are answers, PHP error responses are simple, or when a variable is passed empty, but when it is a javascript…
-
1
votes2
answers214
viewsjquery time Picker, create function for "min time"
I have two input with jQuery which loads a time interval of 30 minutes every 30 minutes. The first is the check-in time, the second is the check-out time. $(function() {…
-
1
votes1
answer242
viewsNan Error in Calculation using Javascript after click Submit
I have a problem here that I can not solve , in this script below performs a calculation of on the marked seats, so far everything is perfect the problem and when I put a Ubmit button to send the…
-
1
votes2
answers48
viewsReturn one of the functions in jquery.
Hello is it possible to return separately one of these two functions that are within another function ? For example depending on the situation I want to return the result of the question Function…
jqueryasked 7 years, 8 months ago Carlos Lopes 185 -
1
votes2
answers1914
viewsEnable and disable function in jquery
I need to disable a function in jquery, for example, when I click on a div, a function that I set will no longer run, just when I click on another div it will work again. The function is loaded when…
-
1
votes2
answers61
viewsjQuery.get runs after all the rest of the function
Running this code the sequence of Alerts I have is begin, outside, final e inside, how to solve this ?? addLine(){ alert('begin') jQuery.get('database/addClube/'+this.clube);…
-
1
votes1
answer34
viewsMoving (drag) three Ivs at the same time and disabling with a checkbox
I’m using this code to move Ivs simultaneously: https://github.com/someshwara/MultiDraggable The logic: If checkbox is checked, use drag in group, otherwise use drag per unit'. But once unchecked…
-
1
votes2
answers28
viewsCSS Selector - Run a loop from a particular loop item
Good morning. Let’s say I have a table with 100 rows, the more I’d like my each (Jquery) to start from line 15. Which Css selector should I use? Or Jquery has some resource for this? Thanks to all…
-
1
votes1
answer334
viewsTransform variable into array
I have a variable that calls all people names. var nome = "João Miguel Pedro"; How do I make it become the following array: var nome1 = ["João","Miguel","Pedro"];…
-
1
votes3
answers1564
viewsEvent while taking the mouse out of the window
Can someone help me? I need a "light", which tells me how to make a modal appear on the screen when I take the mouse from the window, same as this site: http://www.buffetplayhouse.com.br/…
-
1
votes1
answer368
viewsFill textfield with the description corresponding to the value selected in a combobox
I have in my view a select that receives data from functions and lists. <select id="id_mfuncao" name="id_mfuncao" class="form-control"> <option value=""><< selecione…
-
1
votes1
answer147
viewsCSS to style Total Woocommerce
I’m setting up a virtual store on wordpress and would like to know how I do to stylize the Total at the top of the site. Currently it gets broken, as if they had given a block between the R$ and the…
-
1
votes1
answer86
viewsJquery event does not run after click
I am creating an image gallery with Jquery and PHP. All functions (upload, load, load more) work normal except the one that should delete the image. The event should occur when the…
-
1
votes1
answer143
viewsHTML + Ajax form with Jquery and PHP
I have a form that has a native HTML5 date field and I need that in the Onchange event of that date field or change the date value it will call a Php page that will load my page. Example of my html…
-
1
votes1
answer708
viewsProblems with SCROLLTOP
I’m in trouble with scroll-top. The implemented function should take the input that I’ve been with focus is take you to the top with scroll-top, but works satisfactorily only for the first few…
-
1
votes2
answers737
viewsValidate a link in input
Good people, I wanted to make a form where an input is required to enter a Steam link. How do I do? Thank you.
-
1
votes0
answers22
viewsHow to grab button clicked that was created dynamically
Good morning. I am creating a button dynamically via an answer from an sql. $this->return.='<div class="row"> <div class="col-xs-12 col-lg-12 col-md-12 col-sm-12"> <input…
-
1
votes2
answers509
viewsjQuery apply function to all div with the same name
Hello, I have an html with several fields that repeat the same div, I want to take advantage of these Divs to apply a jQuery function in all of them. What would be the best way to do that? accounts…
-
1
votes0
answers24
viewsJcarousel does not work control next Prev
I have the following code in jquery, it does Carousel correctly, but next and Prev don’t work. I need to create them dynamically. I wonder what it might be? Jsfiddle file:…
-
1
votes2
answers613
viewsStore an array of select in a js variable
I need to go through several select and store your value in an array with jQuery, but I can’t. How can I do this?
-
1
votes2
answers548
viewsSubtraction in jquery
I have this function in javascript, and I wanted to pass it to jquery. The user clicks on an html button and calls the function for a discount.` <script> function verifica(){ var preco = 100;…
-
1
votes2
answers124
viewsGo to anchor before full page loading
I have a page that every time when updating, returns to the top after the full upload. However, I have a second page that has a link as follows: index.html#empresa, I would like it to stop,…
-
1
votes0
answers65
viewsPlugin nicescroll error in Chorme
I’m having problems with the plugin nicescroll of JQuery in the Chrome I’m doing like this: <script type="text/javascript"…
jqueryasked 9 years, 3 months ago Carlos Rocha 1 -
1
votes2
answers3874
viewsHow to take the value of an input within a <td> in jquery
Ola, I have the following table in html <table style="display:none;" id="tableTime"> <tr> <td class="hora">08:00</td> <td class="eventoAgenda" id="0800"></td>…
-
1
votes1
answer43
viewsHow this jQuery function works
I’m wondering how this function is working. It has function when someone by iphone click on the link it is not in there and yes direct to link. demo.autoclick = function() { $('a').on('tap',…
jqueryasked 7 years, 7 months ago Lucas Nicolau Rocha Santos 59 -
1
votes1
answer60
viewsHow does javascript 'e' work?
In some codes I see, some people use the 'and' character in functions like: function NomeDaFuncao(e){ alert("teste"); } would like to know how it works, for what it serves and some example where I…
-
1
votes1
answer878
viewsRecover ajax response value
I have a service that registers in a system (the code below) var userstocreate = [ { username: '' + usuario + '', password: 'E@d123456', firstname: '' + primeiro +'', lastname: '' + lastname + '',…
-
1
votes1
answer338
viewsAbort an Ajax request
In a situation where I use the ASP.NET MVC, can cancel a request AJAX depending on the response of a modal? I am doing something like this: function atualizaStatus(sel, id) { var $status =…
-
1
votes0
answers93
viewsProblems to display data with Ajax
Hello. I’m having a hard time getting every time the user clicks a different button on my form to run an Ajax. If I put Ajax out of mine $('button') it displays on the page perfectly, list all the…