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
-
3
votes2
answers1379
viewsMark/deselect all dynamically created checkboxes
I’m creating checkboxes from the comic book. I have another one that defines whether all the other checkboxes are checked or not. When I run the first time it works well, but the second time it…
-
3
votes2
answers4294
viewsLine break of select options that contains a very long value
It is possible to break the line of a option very extensive? ex: <select> <option>texto muito extensp<br/>restante do texto</option> </select>…
-
3
votes0
answers99
viewsJquery Mask with 8 or 9 digit phone
I am using Mask in Jquery to format the phone field with 8 hi 9 digits, but unfortunately I can only leave 8 or 9. If I leave 9, when the user type 8 it erases the whole field, does anyone know how…
-
3
votes4
answers3901
viewsQuestion about each() in Jquery
Because the code below only returns me the first "104 104" and not "104 106" $(function(){ $('#sortable li').each(function(){ console.log($('#sortable li').attr('id')); }); }); <script…
-
3
votes0
answers1376
viewsWheel of Life Chart
I am looking for a tutorial, plug in Jquery or code for a graphic in the format "Wheel of Life", as in the image below. There will be no animation, but the data will be dynamic, coming from a…
-
3
votes2
answers763
viewsJquery consuming Web Service Rest
I would like to list the ceps of this json, follows him: [ { "id": 1, "nome": "Hospital Da Mulher", "cep": "60508090" }, { "id": 2, "nome": "Hospital Maria jose", "cep": "2" } ] And that’s where I’m…
-
3
votes1
answer804
views'Load More' button duplicates or does not work AJAX/JSON
Whoa, everybody, all right? Next, I have a table that is fed with content from an external JSON file (created from PHP with data coming from DB). When opening the site, the table comes with only 2…
-
3
votes1
answer1766
viewsJquery Masked input with regex?
I put the following script to put only month and year in input, and set regex to accept typing from 1 to 12 for months: $.mask.definitions['X'] = "^([0-1]|1[0-2])$"; jQuery(function($){…
-
3
votes1
answer3498
viewsDynamic update without refreshing page
Whoa, everybody, all right? Next, I’m doing an administrative area and would like the content to update dynamically without the need to refresh the page to see if there’s anything new. For example,…
-
3
votes1
answer63
viewsAvoid button click effect without affecting other links
As I can in jQuery, avoid the click effect of a link that has href="#" without affecting the default behavior of other links. Example: I have 3 links <a href="#">Link 1</a> <a…
-
3
votes1
answer1130
viewsAbout Deferred and Promises Jquery
I need help to understand this concept of Deferred and Promises in Jquery, it seems that there is a library for Promises(is there?) but Jquery is breaking the branch with the implementation of this…
-
3
votes2
answers680
viewsSubmit button even when cancel
I have a button in ASP.NET webForm and even clicking cancel it sends the Submit. Example in Fiddle http://jsfiddle.net/dorathoto/qywvuhvq/ $(function () { $("[name='chk_IDDel']").change(function ()…
-
3
votes1
answer101
viewsExecute function if input contains certain text
$(function() { if ($fa.ismod = true) { if (document.getElementById("input#message").value = "/msg") { alert('tudo okay'); } } }); This code should do an Alert if input#message contains the text /msg…
-
3
votes1
answer148
viewsDeezer API - JSON request error with $.getJSON
When trying to perform a simple search on Deezer API (Public Search API without Need for Authentication Key) I get the following error message as return: XMLHttpRequest cannot load…
-
3
votes2
answers485
viewsCompare id attribute with class and give . show in another div
I’m making a map of brazil as svg, need that when I click on a certain state it gives a show in a different div that will have the information about that state. I need to compare path id with div…
-
3
votes1
answer44
viewsSet CSS style for already filled fields
I have the following javascript function: $('input').blur(function() { var $this = $(this); if ($this.val()) $this.addClass('used'); else $this.removeClass('used'); }); she adds the class used to…
-
3
votes1
answer427
viewsProblem with Spring MVC + javascript
I have a problem related to Spring MVC and javascript/Jquery. Well I have a jsp with a form and I needed to do a test where when clicking a button jquery clears the text of some "input type='Text'".…
-
3
votes2
answers268
viewsSpace Lock with REGEX
My code for locking characters is like this: $('#rg').on('keypress', function() { var regex = new RegExp("^[ 0-9]+$"); var _this = this; // Curta pausa para esperar colar para completar setTimeout(…
-
3
votes2
answers155
viewsIterate a form with JS
I have a form with some items, and some cells contain the bank code data and account code to receive. In the same cell I have 2 inputs distinguished, one checkbox and a hidden. I need to iterate and…
-
3
votes1
answer162
viewsHow to get the values of the last 4 columns with Jquery
I have a panelGrid, and would like to know how to get the last 4 elements before a given of the same line. That is, I have a line, and the last element will receive the sum of the previous four.…
-
3
votes1
answer5204
viewsHow to remove alert from "Uncaught Rangeerror: Maximum call stack size exceeded"
I have a file .js on my website where I put some effects and everything else. The problem is that you are charging an alert "Uncaught Rangeerror: Maximum call stack size exceeded" and I don’t know…
-
3
votes1
answer2730
viewsPass data from an HTML table to the ASP.NET MVC controller
I’m trying to pass data from an HTML table in my view to my Controller.The data in this table are added dynamically. A Modal Bootstrap is opened, where the user informs some data, when clicked the…
-
3
votes1
answer791
viewsHow do I show a clicker while processing a javascript function?
I have a radio button that when clicked, performs a function that mounts a datepicker. But the function mountDatepicker is only loaded after a few seconds, after consulting the three Apis to then…
-
3
votes1
answer35
viewsGrab a plugin selector
I’m trying to create a plugin but I can’t catch the selector, and it was even removed from version 1.9. If I use $(this).selector in the plugin, it returns a string #div #elementoA, #div #elementoB.…
-
3
votes3
answers13886
viewsTake the value of a dynamic select
I wonder how I get the value of a <select> dynamic, ie when I modify the value it presents me this value, I imagine something like below, someone could help me? varItens =…
-
3
votes2
answers1591
viewsGet values of selected checkboxes and their respective prices
Well, I’m developing an online ordering system, initially just for learning purposes, only that I came across something that I have absolutely no idea how to do and would really appreciate any kind…
-
3
votes1
answer1135
viewsJS effect slip div and appear other
Next I have a home where the user will come across a field to login or a button to register. By clicking the Register button I would like this current content to disappear from the screen by sliding…
-
3
votes3
answers10288
viewsHow to know which select option has been selected
I have a <select> and I need to know which <option> was selected. <select class="formacao"> <option>Ensino fundamental incompleto</option> <option>Ensino…
-
3
votes1
answer360
viewsClick event on an SVG
I have a map of Brazil, in an SVG, where I would like to present a div next to each state when clicking on it. I managed to work the color change with hover using the ID of each state of Brazil:…
-
3
votes2
answers7541
viewsIf input has only blanks, do nothing
I’m making an application of chat with Websocket. I used contenteditable="true" in a <div/>, because I needed to put so to facilitate in other functions. On the part of input that sends the…
-
3
votes3
answers1396
viewsCheck that the mouse is not in the element
I want to run a code, but this code can only be executed if the mouse are not about a div. I tested the .mouseout() but it checks if the mouse is out, that’s not it, I need to check if the mouse is…
-
3
votes1
answer998
viewsHow to get the full screen size even if the browser window is resized?
I can get the size of the browser window through the following code: $(window).height(); However, this method takes the current size. I wonder if I have how to get the full size of my screen even if…
-
3
votes2
answers1086
viewsDisable/ enable scroll with Jquery
I need an area that by clicking, prevents the scroll from the screen while the cursor is over that area, however, it works normal outside that area. I got this with a function that I will leave…
jqueryasked 9 years, 7 months ago Mauro Alves 546 -
3
votes2
answers1452
viewsHow to create an animated Progressbar to inform the strength of the password?
On some sites I’ve seen bars like this, it would be to analyze the security of passwords and size, while the user types the progress bar not only moves, but designs an animation and fill or trim...…
-
3
votes1
answer246
viewsRequest Cors for webservice
I am trying to submit a form via POST to a WebService but I’m having the following problem: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore…
jqueryasked 9 years, 7 months ago Jadson de O. Rosa 166 -
3
votes1
answer88
viewsjQuery resizable() does not drag the panel-footer
When I apply the resizable on the panel and drag it down, the footer does not come with the panel. Some way to solve this problem? The code is as follows:: <div class="panel panel-default"…
-
3
votes3
answers447
viewsDivide a date into two parts
I’m making a calendar using Mysql, html, JS and PHP. This calendar serves to book the ballroom here in the building. There may be two reservations on the same day, morning and afternoon that would…
-
3
votes1
answer187
viewsSimple doubt with Jquery, smooth effect
I’m having a hard time smoothing out an effect I did. It is very static, after clicking on the link, the goal is to make after the click between the menu screen in a smooth way... from opacity 0 to…
-
3
votes4
answers47097
viewsTake select value with jquery
I have an HTML code that contains the following information: <select name="QtdAcomodacaoD" id="QtdAdomodacaoDuplo" class="form-control" style="width:130px" onchange="soma()"> <option…
jqueryasked 8 years, 10 months ago user24136 -
3
votes2
answers356
viewsAsync parameter of jQuery.ajax is obsolete, what now?
I’m developing a Javascript application and need to queue for requests ajax, and I need one to be done after the other, because they manipulate some variables of my scope. The parameter async of…
-
3
votes2
answers69
viewsFilling of two equal inputs
Well I have the following problem, I have two inputs : Desconto<input type="text" name="desconto" id="desconto" style="width: 100px" > and Observação<input readonly="true" type="text"…
-
3
votes1
answer893
viewsPosition the cursor
I have a function with Jquery that leaves the text of the textbox in uppercase, the problem is that when I have a mask in the field, after typing any character, the cursor goes to the end of the…
-
3
votes3
answers221
viewsI wanted to know how to make each page refresh to . class be moved
Example: Normal Order class 1<br> class 2<br> class 3<br> .<br> .<br> .<br> class10<br> I want to put in alatoria order to each refresh Example: class…
-
3
votes1
answer93
viewsProblem ng-click with Angularjs
I have a button: <a ng-click="like">Gostar</a> When someone clicks on it, perform the action and it is replaced by jQuery by the other button: <a…
-
3
votes1
answer1909
viewsHow do I know if the browser scroll is near the height of the div?
I am trying to make the Divs that are hidden when they are at the same height (or near) of the browser scroll appear (individually) as fedeIn effect. Can someone help me with some idea?
-
3
votes3
answers1367
viewsHow to inform that a particular store is open at that time
When between times described below will be written OPEN, when you are not at that time will be written CLOSED, in javascript, jquery, etc. How could I do this? <div class="Lojas"> <p…
-
3
votes1
answer513
viewsWhat’s the best way to get information to View?
I have the following code: public ActionResult AtualizaCliente(int id) { ViewBag.idFoto = new SelectList(dao.fotos, "idFoto", "Foto"); ViewBag.idInformacao = new SelectList(dao.informacoes,…
-
3
votes2
answers555
viewsActivate function on another page after clicking anchor
Basic example, by clicking on div1 of Pagina1 open the Pagina2 and change the background color, this is possible? Pagina1.html <body> <div> <a href="Pagina2.html#div1"…
-
3
votes1
answer24415
viewsCheck if element exists with jQuery selector
Why is that, if (typeof($("div#elementoquenãoexiste")) !== "undefined") { console.log("existe"); } returns "existe" in the logs? Should not return undefined, taking into account that the element the…
-
3
votes3
answers167
viewsHow to know if at the beginning of a <p> they have "x" character?
Hello, I am a layman in JS/Jquery, but I believe that is where I will be able to do what I want. I don’t know if many have used 4chan, but there is a function where, if the user uses the ">" at…