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
-
5
votes1
answer200
viewsGet widget without id
I have a div, and within it one canvas without id and other elements. <div id="itens"> ... <canvas></canvas> ... </div> How can I get the canvas using JQuery?…
-
5
votes1
answer534
viewsMultiple events in Jquery selector
someone knows if/how it is possible to assign multiple events to a Jquery element in a single row? For example: $('#elemento') .keyup(function(){...}) .focusout(function(){..});…
jqueryasked 9 years, 2 months ago Leandro Hermes Neto 117 -
5
votes2
answers7699
viewsHow to move one element to the position of the other with Jquery?
I have an element and I want that when the user hovers over it, it should go to the position of another element. For example: I have the element A and I have the element B, when the user hovers the…
-
5
votes2
answers1345
viewsClick on the Link and open a player below it
I have some links, example: Link1 Link2 Link3 Link4 and would like to click on Linkx it opens an "embed" just below it, and that each Link brings its corresponding video. I’m working on a wordpress…
-
5
votes2
answers536
viewsUsing Animate() jquery to animate the place change in a puzzle
https://fiddle.jshell.net/sLa0q4yh/ This example above is not yet fully functional, the logic of the puzzle is: 1 - Click on at least two Ivs (or 2 pieces of the puzzle) and so both Ivs would have…
-
5
votes1
answer572
viewsdayClick Fullcalendar
You can avoid opening the prompt(modal) insertion of new event to the click on in a day on the monthView? I managed to make it go to the date clicked on agendaWeek but he keeps opening the prompt…
-
5
votes3
answers407
viewsKeyup allow it to contain only one dot between input characters
Personal how to allow it to contain only one point (.) between the characters typed in the input by checking with the jquery keyup event. Example of an exit: 000.000000 1.000 99.9.99.999 // <-…
-
5
votes2
answers21755
viewsHow to get Date in Day, Month, Year and Time format with Jquery
I have a piece of code that I can get the date and time, but the date is in the format Mês/Dia/Ano followed by time, but precise in format Dia/Mês/Ano followed by the time, I tried to change the…
-
5
votes2
answers104
viewsHow do you put a sentence inside a form field and it disappears when you click inside the field?
I would like to know how to put a sentence inside a form field, and it will disappear when you click inside the field. How do you do it in CSS? How do you do it?
-
5
votes5
answers338
viewsMove background of text
Staff need to place and animate a degrade as background of a font with a written text. I need this gradient to be applied to the source (not behind the text) and to keep moving from left to right…
-
5
votes1
answer10573
viewsCheck if a div is visible
I need to know which id of the visible div, I’m looking for on isVisible() but it’s not working, what should I do ? Problem: I have several Ivs that take count of the whole screen, but I only leave…
jqueryasked 8 years, 11 months ago Renan Rodrigues 3,709 -
5
votes1
answer5204
viewsHow to create a Radio button with image?
How can I make a Radio Button turn into an Image? I need to make an image gallery inside a form to, when clicking on the image would be selecting a radio button as in the image below:…
-
5
votes3
answers15590
viewsHow to call a JS variable for an H1 HTML
I got this little FIDDLE to exemplify my problem. HTML <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> </ul>…
-
5
votes2
answers40895
viewsValidate input to only receive numbers with jquery?
I need this input to receive only numbers: <input class="form-control input-sm " placeholder="número" maxlength="4" type="text" ng-model="numero.nJogo" /> This I need to receive only values…
-
5
votes3
answers3107
viewsHow to send strings in the URL via JS or jQuery?
How do I turn a string, ex: minha string in minha+string to send to the URL? Can be in JS or jQuery
-
5
votes1
answer206
viewsImage rotation does not work properly in Chrome
I’m trying to use a function in jQuery, and it works well in Firefox but in Chrome it just doesn’t start, gets stuck in the first image and doesn’t go to the others. Could someone give me a light of…
-
5
votes2
answers374
viewsClick on Notification Desktop and go to the same window without refreshing the page
I am developing a chat with Websocket and I have a problem, when I send a message to a friend, he receives the desktop notification (from the browser he is) and when he clicks on the notification he…
-
5
votes1
answer130
viewsjQuery plugin change attributes with $.extend
I created an object in a plugin above .fn. Because usually they are created inside the objects from there we do the following: (function( $ ){ $.fn.tooltip = function(options) { var defaults = {…
-
5
votes1
answer10913
viewsHow to disable browser 'back' button function?
How to prevent the user from using the javascript back button? I have a page and I want it to use the page back button.
-
5
votes3
answers3929
viewspick element after being inserted into DOM with jQuery Append
My page has a selectbox, with some segments, when a user selects a segment, through the event on change jQuery, he takes the value of <option> selected and inserts an Hidden input with the…
-
5
votes2
answers1160
viewsHow to copy an html block when clicking a link/button?
Today a friend and I thought about developing a system for registering resumes, only I need to click on a link add 1 more block inputs each time clicked. I tried searching, and did not find nice…
-
5
votes2
answers1005
viewsWhen selecting option displays div with
I have a doubt, as I know nothing of PHP, i would like someone to help me how to assemble or implement a Jquery that I found. In my case there are 2 selects, one who would be called Estado and…
-
5
votes2
answers1291
viewsFields are not 'masked' with jQuery Masked Plugin
Good afternoon, @EDIT The fields are now accessible. However, what is typed is not masked as preset in the script. Plugin: http://digitalbush.com/projects/masked-input-plugin/ Code: <!DOCTYPE…
-
5
votes2
answers114
viewsMake a site not run on any version of IE
I have a website that should not run on any version of IE, when trying to open the url I want a background-image that I will mount by saying that my site is not supported on IE. This is possible to…
-
5
votes3
answers384
viewsReset "<select>" by unchecking checkbox
Hello dear beasts in Jquery, following the logic of the example below, how to make select always return to the first value of the list after unchecking the respective checkbox? And the second…
-
5
votes1
answer12530
viewsHow to compare two dates in Javascript or jQuery
I’m trying to compare two dates from fields text, turning them into objects Date, as follows (the first function is to format the field input with XX/XX/XXXX): function formatar(mascara, documento){…
-
5
votes1
answer73
viewsFade Radial js or canvas
Hello, I wonder if there is some transition I can do in radial or style of dissolving paint (as if it were running paint)? For this purpose become cooler to open the site. Fiddle:…
-
5
votes1
answer435
viewsHow to display only the first row of a table?
I have a table with summaries about a particular client, where the first line is the main content to be displayed, and the rest is a mere complement. I know I could apply display: none, but I…
-
5
votes1
answer434
viewsHow to transform AJAX with Jquery into pure Javascript?
How can I do the following AJAX in pure Javascript, without using Jquery? $.ajax({ url: "http://habbxo.esy.es/test.html", success: function b64EncodeUnicode(entry) { nome =…
-
5
votes1
answer162
viewsCancel selection of Uploads
I’m trying to upload files imagens, but when I’m clicking on X of the photo Preview, it is only closing the Preview, but it is still selected. How can I do for when click on x, also take that image…
-
5
votes1
answer1721
viewsCopy and paste Javascript command
I need to know how to give Ctrl c in the contents of a div when clicking on it. In this case it will have multiple Ivs, and it will take the contents of the div clicked. I found some things on the…
-
5
votes1
answer850
viewsProgress-bar to DOWNLOAD files in Jquery
I have seen many people looking for how to make a progress bar to download files, Megaupload style. I beat myself up to get here and I’d like to share with the guys! 'Cause I didn’t find anything on…
-
5
votes2
answers320
viewsClick and "Decrypt" on jquery button
I have a Button created only in HTML and CSS, and I need that if someone click on it, a block <div> alter your background-color. With that maybe: $(document).ready(function(){…
jqueryasked 9 years, 4 months ago Danillo Eder 605 -
5
votes2
answers986
viewsWhat is the best practice for integrating external content into my website?
I am developing a site in PHP and I will need to integrate a content that will be on a page of an external site. This page will be with little formatting, without header footer and sidebar, I’ll…
-
5
votes1
answer15283
viewsCheck if the completed email already exists in the database without refresh
I need you to fill an email in the email field, search the database and return a message warning if this email is already registered in the database. We developed jQuery + PHP according to answers…
-
5
votes1
answer7321
viewsHow to pick attributes from an option field with jQuery
I have the following code: <select name='exemplo' id='exemplo'> <option value='1' class='teste' dado='a'>1</option> <option value='2' class='teste' dado='b'>4</option>…
jqueryasked 8 years, 3 months ago Amanda Lima 3,428 -
5
votes4
answers15429
viewsaddClass and removeClass with Jquery
I am trying to create a menu where a div wins a class if clicked, but I would like to remove the class from the last link clicked in the menu. <div id="bolinha-dentro"></div><a…
-
5
votes2
answers79
viewsFind 2 date attributes in a single element
How can I find a particular attribute that contains another specific attribute? for example: <a class="fc-draggable" data-belongs="3" data-target="2"></a> I can select all elements that…
-
5
votes5
answers142
viewswhat is the best way to create elements?
for(var i=0; i< numTotalPerguntasDig; i++){ strInterface += "<ul>"+ "<li class=\"col-md-2 \">"+ " <button type=\"button\" class=\"btn btn-danger btn-info-bloco form-control\">"+…
-
5
votes1
answer69
viewsPass Base64 code to another page
I have tried to pass as get only that the bar code and the error, I just need to pass the code Base64 from one page to another page. Obs** This code Base64 is being generated on page A with Crop.…
-
5
votes1
answer775
viewsCatch event click inside iframe with jQuery
I’m using the Google Forms to do a satisfaction survey on a site. On this site I show a bar at the top, asking the user to participate. If he closes the message, a cookie is saved that expires in 24…
-
5
votes2
answers855
viewsUpdate from change in select
I have a list of multiple selects and I need you to update the select option in the database. I can do this through ajax + php. My doubt is actually how to trigger the event from the option change.…
-
5
votes1
answer2156
viewsPlace emoticons in my website’s chat
I would like to know how in php or javascript to put emoticons according to the person typing the text and a command, ex: Hello good morning [/sun] or I am fine [:Mile] Anyway independent of the…
-
5
votes2
answers689
viewsDo not send via POST elements within div "display None"
I want to remove the Ivs that are left with display:none with the function remove() jquery and when they are selected as display:block they come back.... because I want to send a form via POST that…
-
5
votes2
answers1205
viewsJquery Autocomplete
I’m having Autocomplete Problems, I can pull the data but autocomplete doesn’t work ! $("#marcas").autocomplete({ source: function (request, response) { $.ajax({ type: 'GET', url:…
-
5
votes3
answers1506
viewsFormatting numbers with jQuery
Hello, I have an array that is returned via an AJAX request and I intend to format the numbers of each of these keys as follows: Example: Standard values -> 2569 -> 192544694 How I wish they…
-
5
votes1
answer215
viewsObtain only numbers in an input that receives XX ml (example: 200ml)
I am using the Jquery mask to automatically put the ml (milliliter) suffix in the input that gets the size of a bottle. being the input id #size: var tamanho = $("#tamanho").val(); An example 200 ml…
-
5
votes1
answer448
viewsDivision between integer and real number returns Nan
I’m afraid the integer values (example 350) and a real number (example 3.50), need to divide one by the other precisely (3.50 / 350) the result would be 0.01. var tamanho =…
-
5
votes3
answers458
viewsSearch between Jquery columns
I own a td with client code and in another td I have a customer name relationship with the client code Example: codigo | nomes 0001 | Anderson Silva(0002) | Minotauro (0001) | Lioto Machida(0003) I…
-
5
votes2
answers463
viewsToggle text and class of a link when clicked - jQuery
I’m trying to make the delegation an event click There is a link within a table, how this jsFiddle example shows: The result obtained as you can see, is: By clicking on the link "Activate", the…