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
-
16
votes2
answers1907
viewsHow to work with websockets
I’m trying to use Websockets in PHP and Javascript and I’m confused, it uses the protocol Ws:// and wss:// and the server (hostgator) does not have these protocols enabled (I think!) and I can’t get…
-
16
votes4
answers3142
views -
16
votes4
answers16259
viewsHow to use Progressbar with Ajax and PHP?
I found some examples where the developer implements a setInterval trying to predict the import time and in the complete ajax put 100% making that bar Progress get "a bit buggy" or jump from nowhere…
-
15
votes3
answers7499
viewsHow to fill in a numerical field as in internet banking (right to left)?
At Atms and internet banking sites there are numerical fields that when you type they are filled from right to left, increasing the number as you type, for example: +-----+--------------+…
-
15
votes2
answers1705
viewsHide widget if empty
I have a div which is used to display alerts to the user: <div id="page-alerts" style="margin:25px 0;"></div> Problem Example in Jsfiddle For reasons of formatting, it contains margins…
-
15
votes4
answers6633
viewsHow to make the browser "Back" button work on an AJAX site?
I researched this topic a year ago when I made a site with features like $.load() and $.ajax() in AJAX/jQuery but did not get anything satisfactory that was not overly complex, and until today the…
-
15
votes3
answers973
views -
15
votes1
answer17504
viewsHow to smooth the scroll of a page?
How do you make the scroll (scroll bar) of a page smooth? And if you can, how to customize it. Example: http://themenectar.com/demo/salient/blog/…
-
15
votes1
answer214
viewsIs it possible to make a text box with negative border Radius?
I would like to do this negative curve using CSS or Jquery, it is possible?
-
15
votes3
answers19149
viewsLeaving Fullcalendar in the English language
Hello, I downloaded a template fullcalendar of Adan Shaw, only that the standard language is English, I would like to leave it in Portuguese. How do I make this change? Thank you.…
-
15
votes1
answer10056
viewsUpload images with Crop and resize, jQuery and PHP
I need a function in which the person should upload an image, and it should "crop the image", leaving it in the right size, Facebook style and then should be saved in the databank. I tried several…
-
15
votes1
answer676
viewsWhat is the purpose of the with_jquery function?
I’m learning to write Userscripts (for Tampermonkey) and virtually every example I see makes use of a function with_jquery: function with_jquery(f) { if (!jQuery) return; var script =…
-
14
votes2
answers1581
viewsDifference between method ". attr()" and ". date()"
I notice that there is a difference between updating or applying an attribute data using the jQuery method .attr() and the method .data(). The examples below can be seen in this Jsfiddle. Apply…
-
14
votes5
answers16269
viewsHow to enable a button only when all inputs are completed?
I have a <button> which is rendered as disabled(disabled) when page is initially loaded. I’d like him to stay enabled(authorised) when all data are completed in <input>'s. How could I do…
-
14
votes3
answers24198
viewsWait for Ajax return in synchronous function
I have an operation that I need to perform synchronously, but part of the information I need can only be obtained via Ajax. I tried to synchronise everything with a wait for Ajax to return. The…
-
14
votes1
answer23562
viewsShow GIF while page loads
I need a GIF to stay working while the page loads. I’ve tried a few ways but none worked. And when the page loads, the Completed!. More or less as it happens on this website.…
-
14
votes2
answers16859
viewsHow can I get the lottery results?
I searched for lottery API’s to get the results of the contests, unfortunately I could not find any. The response of @fpg1503 can read only the result of the current game, I wonder if it is possible…
-
14
votes1
answer7883
viewsMap of Brazil - what is the best way to do it?
I have the following map: When the customer hovers the mouse over a state, it has to change color. I thought to do several Ivs, to assemble the map. Only this will generate a problem, as the Divs…
-
13
votes2
answers1381
viewsWhy does Google Chrome accuse you that jquery.min.map is missing?
I downloaded the version of jQuery 1.10.1 minimized and Google Chrome is warning in the developer tools, Network tab, that jquery.min.map was not found: error 404 Note: jQuery works correctly. That…
-
13
votes1
answer865
viewsHow do I increase the brightness of an element with Javascript/jQuery?
On my page I have several elements with different background colors. I wonder how I could do to when clicking a button increase the brightness of the color, make it lighter. It is possible to do…
-
13
votes4
answers13879
viewsHow to detect if an HTML element is empty?
How can I detect if an HTML element is empty with jQuery? I need to make a condition if the element is empty.
-
13
votes2
answers345
viewsHow do I catch an error alert generated by the Google Maps API?
If, for some reason, an error occurs and Google disables access to the maps API, an alert of this kind will appear to the visitor: Google has disabled use of the Maps API for this application. The…
-
13
votes5
answers704
viewsEvent is not tied to the element
I have an event at jQuery (version 1.5) as follows:: $('#refresh_abertos').click(function(){ // aqui o código irrelevante nesta pergunta }); Turns out my element #refresh_abertos is only loaded…
-
13
votes5
answers3441
viewsShow text when typing in textarea
Consider the following example: I have a textarea that, when the user enters something on it, a small text just below should be displayed, and at a certain time after the user has finished typing…
-
13
votes4
answers3372
viewsGenerate random numbers that result in a fixed sum
I need to generate random values for the inputs text of my table (remembering that it can have N lines), my code today can generate the numbers but I need the generated number to be at most X so…
-
13
votes2
answers2787
viewsHow to determine which HTML element and/or which event called a function?
I have a function called by two different HTML elements and each element calls the function through a given event. $("#tempoInicial").on("blur", manipulaTempoFinal); $("#operadorTempo").on("change",…
-
13
votes3
answers4991
viewsBack to Top of page
I need to have a fixed icon on the page in the right corner below the screen. By clicking this icon he goes back to the top of the page, doing the Scroll scroll to the top of the page. Could someone…
-
13
votes2
answers1285
viewsCkeditor html content is empty after using jQuery-ui Sortable in your parent div
I want to leave "sortable" 2 or more div’s with a Ckeditor populated with html, but when doing this the html of Ckeditor loses the content and the editing space is blocked. Fiddle next:…
-
13
votes4
answers7358
viewsHow to jump to the next field using jQuery?
How to move focus to the next field of a table using jQuery? I have a table with the fields Id, Name and Price, the price column is a text input. How to implement a feature for when the user presses…
-
13
votes2
answers255
viewsWhat would be the 'e' passed as a parameter in js functions?
What would be the 'e' that is passed as a function parameter? Ex.: function nome(e) { (instrução); } Does anyone have any material, or keyword for research that I can turn to to study a little more…
-
13
votes4
answers2688
viewsHow to add the ninth digit, fixed, using jQuery Mask?
How to add the ninth digit, in a fixed form, using the jQuery Mask? $('#telefone').mask('(00) 90000-0000'); This way I use is only optional.…
javascript jquery input mask jquery-mask-pluginasked 9 years, 5 months ago Marcelo de Andrade 7,261 -
13
votes1
answer16196
viewsDifference between keyup(), keydown() and keypress()
I’d like to know the difference between keyup(), keydown() and keypress(), in my opinion I think they do the same thing, but what is the purpose of each? Performance improvement for each type?…
-
13
votes6
answers10207
viewsOpen Multiple Bootstrap Modals
As per bootstrap documentation: Modal Multiple modes are not supported and require additional code. I am trying to open various modals within others, these modals are called external files with…
-
13
votes2
answers2314
viewsTranslation of static website content into 4 languages
What tool have you used to release the option of translating content from a static HTML site to another language? Some jquery plugin, some api? What is the best practice currently aiming at…
-
13
votes2
answers8777
viewsDelete Javascript and Render Lock CSS?
Analyzing link in Pagespeed occurred the following warning Delete Javascript and CSS from blocking rendering content above the edge Basic layout <!DOCTYPE html> <html lang=pt-br>…
-
13
votes3
answers4045
viewsHow to add <li> dynamically in <ul> with jQuery?
I’m bringing back notifications and need to dynamically add the path to them, how do I add a <li> to each element of the response? Javascript $(document).ready(function () { $.ajax({ url:…
-
12
votes1
answer1328
viewsHow to use a bracketed name (square brackets) in a jQuery selector?
What is the best way to call an element that has straight parentheses in the name, using jQuery?. HTML <div name="name[1]"></div> jQuery $('div[name=name[1]]'); //errado?…
-
12
votes1
answer1368
viewsHow to detect that the div was rolled to the end?
I need to know if a certain div was rolled to the end, using jQuery. I’m having problems because the height of the div is not constant. The goal is that the automatic scrolling of the div does not…
-
12
votes2
answers629
viewsWhy does jQuery fadein not work if the element has zero opacity?
I have an element with zero opacity defined via Javascript. In practice, this is equivalent to: <div style="opacity: 0"></div> My intention is to use jQuery to make an effect of fade-in…
-
12
votes2
answers9742
viewsDynamically adding element with jQuery
I have assembled the following structure in HTML: <form name="criaModelo" method='post' action=''> <label for="name"> <strong>Nome:</strong> <input name="nomeModelo"…
-
12
votes6
answers8117
viewsHow to remove a "href" from a <a> tag with Jquery/Javascript?
I have a tag <a> with hyperlink properly set. However, I would like to remove it when firing from an event. The same tag has a properly set ID, too (unique, valid, and related). I wonder if…
-
12
votes3
answers1676
viewsHow to set a max-width to a div that increases and decreases proportionally?
My div which increases or decreases proportionally is with style: padding-bottom: 75%; Look at this example: Jsfiddle What I want is that the div that grows proportionately lock the size, when you…
-
12
votes1
answer6004
viewsHTML5 print screen automatically
Is it possible or is there a Html5/javascript/jquery library that allows me to take a print of the window or a div and save automatically without the user’s permission? I’ve tried to window.print()…
-
12
votes3
answers18362
viewsHow to preview a loaded image in an "file" input?
Description: I have an example here of how my system is working. EXAMPLE LINK HTML <input type=file> <input type=button class=hide value="Adicionar outro"> JAVASCRIPT function…
-
12
votes2
answers469
viewsjQuery onload x jQuery onDomready
Every time I use the Jsfiddle see options to initialize jQuery content via onLoad or onDomready. I tested with most of the scripts I write and there was no functional difference. Searching on Google…
-
12
votes5
answers36368
viewsTake value from an attribute in td
I have a dynamic table where there are 9 columns In one of the last columns there is a button disapproval, and when I click on it, I wanted to take the name that is inside a td in the same tr…
jqueryasked 10 years, 3 months ago Tafarel_Brayan 415 -
12
votes4
answers80887
viewsHow to force the opening of a link in another tab and not window?
I have a button (anchor) that needs to be 'hidden', or no text. Its structure is this: <a class="testeimprimir" href="javascript:teste1();" target="_blank">TESTE</a> The Function is…
-
12
votes2
answers189
viewsAre libraries downloaded multiple times?
I have an application that uses 3 libraries (Bootstrap, jQuery, jQueryUI) on 10 different pages. Browsers cache libraries?
-
12
votes4
answers4731
viewsHow to check if the first four characters of a string match 'www.'?
What is the best way to verify this? More simply and with better performance. I could only imagine doing so: var string = "www.google.com"; if(string[0] == "w" && string[1] == "w" &&…
-
12
votes1
answer498
viewsIs a framework based on a programming language?
I know that a framework is like an application to be used in applications, but it is correct to say that a framework is based on a certain language? Example: jQuery is a Javascript-based framework…