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
answer5113
viewsHow to add HTML dynamic code snippets with Javascript/jQuery
Usually when we want to list data on front-end using the tags of back-end<%= %> or others. The stalemate I’ve come across now was: "How to do this in jQuery?". To explain better, I am…
-
5
votes3
answers2742
viewsIs there a better way to insert an option in select with jquery?
I was wondering if there’s a better way to insert a option in the select with jquery. Example: <select name="municipio_evento" id="municipio_evento"> <option value=""></option>…
-
5
votes2
answers579
viewsPull PHP information via AJAX with jQuery in json format
I have a code in jQuery that performs the creation of a calendar that you can leave reminders on the date. The code is as follows: var calendar = $('#calendar').fullCalendar({ slotDuration:…
-
5
votes1
answer508
viewsTilted carousel (diagonal) in jQuery and CSS
I need to make a tilted carousel (diagonally as per image) but with transition between movements. I even prototyped something in this Jsfiddle but the movement is only working on the "back" button,…
-
5
votes2
answers686
viewsiterate values in $.each nested Jquery
I’m getting a full table from my server side, looking for td with information I want and save that tr integer in a variable as below: var rowVoo; $(table).find("tr td").each(function () { if…
jqueryasked 10 years, 4 months ago Hermes Autran 899 -
5
votes1
answer3850
viewsSmooth scrolling on page
I wanted to know how to do it so that once I click on a page link in the main menu, the page will scroll smoothly to the desired page that was clicked? Example:…
-
5
votes1
answer411
viewsChanging a Dropdownlist via a search
I am creating a registration screen where in a text field I provide a search and the search result will have to appear in a dropdownlist. The project is asp.net mvc4 c# and the code in the view is:…
-
5
votes2
answers160
viewsHow do these sites load your HTML?
I ended up looking at source code from sites like Gmail.com and Secret.ly and noticed that HTML is embedded in Javascript, what is this technology that they use? Stay this way: <script>var…
-
5
votes2
answers1076
viewsIdentify extension installed in google Chrome
How can I identify that the Google Chrome of the user who is accessing my site has a certain extension installed. For example, one has the extension of Glogo.com/Itau, etc.. I need to check this to…
-
5
votes2
answers1924
viewsHow to pull content via AJAX from a site that has a menu header and a fixed audio player?
How can I create a website that uses AJAX for loading the pages ? What is the best way to do this without bugs occurring and that are really functional? I have plans to create some websites that…
-
5
votes1
answer1392
viewsEvent problems in dynamically created elements
My intention is: A listing where it is possible to add <div> and delete the added Divs with a "button" inserted into each div. The page already comes with some divs fixed inserts which are…
-
5
votes1
answer4182
viewsGet File Size in Bytes in Java Script
I am validating the size of the attached file on my page before uploading using the following code: var tamanhoArquivo = parseInt(document.getElementById("documento").files[0].size);…
javascript jquery jsp file-upload internet-explorer-8asked 9 years, 12 months ago Eduardo Nobre 356 -
5
votes2
answers2907
viewsLimit scrollbar according to div size
Is there any way to limit the barra de rolagem page according to the size (height) of a div? Let’s say I have a website like any other, but when opening one box floating with a height of 1000px, I…
-
5
votes5
answers24461
viewsUsing jQuery Validation Engine and CPF validation
I am using jQuery Validation Engine with translation file for English. I added the following line to Javascript: "cpf": { "regex": /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/, "alertText": "* CPF…
-
5
votes1
answer886
viewsChange url of pages with ajax and click on another browser
I have the following problem, I am developing a web application in java and I would like to know how to change the URL of a page when I click on a menu link. For example: Access a site…
-
5
votes2
answers6436
viewsHow to call a function of another JS file keeping the context of the current function?
I have the following scenario: HTML: <script src="JS1.js"> <script src="JS2.js"> In JS1 I have the following: $(document).ready(function(){ var pagina = "site1"; iniciarSite(); }); In…
-
5
votes3
answers2101
viewsHow to put transition in a dropdown of a menu?
I currently use the following code: $("#menu").find('li').hover(function () { $(this).children('ul').clearQueue().slideDown(600); $(this).children('a').children('ul').clearQueue().show(0); },…
jqueryasked 10 years, 3 months ago Alexandre Lopes 2,769 -
5
votes2
answers200
views$(Document). height() does not return the correct value
I’m trying to get the size $(document).height() of my site, but the value shown sometimes is different than the HTML size (in inspect element) shows. I’ve tried calling directly $("html").height(),…
jqueryasked 9 years, 10 months ago Luna Laura 189 -
5
votes1
answer79
viewsChange Element mouseover/mouseleave
I’m trying to change the src of an element using the property attr in the mouseover and then on mouseleave. The idea is to change a banner while the mouse is under an element and update again after…
-
5
votes1
answer111
viewsMoneymask Does Not Work on Device
The Jquery Plugin does not work on device, someone would know how to fix it? The point is, I researched about why the plugin Moneymask not work within the device and found that the plugins mask use…
-
5
votes3
answers12621
viewsHow to remove specific words with javascript
How can I remove specific page title values? Title: STACKOVERFLOW REMOVE: STACK RESULT: OVERFLOW
-
5
votes4
answers1147
viewsMark checkbox if user writes input text in a table
I need it when the user writes to an input text, the checkbox of the respective table row should be marked, and if the user leaves the input text blank again, checkbox is cleared. Follow code:…
-
5
votes3
answers18417
viewsHow to catch the child element
I’m trying to get the value of the plan by clicking the button. html <div class="price-button"> <input type='hidden' name='plano' value='Plano Padrão' /> <button type="button"…
-
5
votes3
answers11265
viewsSessions in JS or jQuery
Is there any way to use js or jquery sessions? I’d like to do something similar to php sessions.
-
5
votes1
answer166
viewsHow to put a text cursor to start on the right? Calculator
I’m making a basic calculator and on the calculation screen, I want the numbers to be "printed" from right to left. How can I do this?
-
5
votes3
answers14765
viewsHow to check if any field of a specific class or type is empty?
Programming for recording multiple data from the same type or even class within the database, I came across the need to verify that any of these inputs would not be empty at the time of insertion.…
jqueryasked 10 years, 1 month ago Marcos Vinicius 7,188 -
5
votes2
answers326
viewsDo I need to include jQuery on every page?
It is necessary to place the script jQuery production every time you start a new encoding?
-
5
votes1
answer435
viewsAccess through Javascript/Jquery an element that came through AJAX after DOM LOAD
I am developing a WEB APP with Angularjs, there is an element that is coming to the DOM after its loading (load), I am trying to write an event : $('elemento').click() But when finished rendering…
-
5
votes1
answer4173
viewsDifference between $(window) and $(Document)
Is there any difference between using the $(window) e $(document)? Because from what I found they do the same thing.... And that initialization: $(window).on('ready load resize', function(){ It…
-
5
votes2
answers346
viewsAdd class Dynamically
I own a Carousel where the buttons prev and next are generated by the plugin. The problem is even trying to add a class with the traditional method $(".owl-prev").addClass("theme-color"); the same…
-
5
votes2
answers273
viewsHow to return different answers with different values in equal Classes?
I have two different values that must return different answers, but the classes are equal, how to solve ? See that the answers are wrong. .Container-Produto{display:block;border:solic 1px #ccc;}…
-
5
votes1
answer1497
viewsDynamically manipulating the DOM with jQuery
The system I am currently working requires a lot of AJAX and DOM manipulation, so I started learning (not long ago), jQuery. In the Feature I am currently developing, there is a jQuery plugin called…
-
5
votes4
answers444
viewsMark contacts/hashtag in typing text with javascript
Good morning In my current project, I need to mark individual contacts and/or hashtags in the text, while the same type For example, when typing '@' and the first letters, javascript recognizes that…
-
5
votes1
answer3205
viewsSearch field in the <select> form
Good night, I would like to know how to in the list of a select enable "search" within the field? <select class="input-xxlarge" onchange="clienteChange()" style="width: 409px !important;"…
-
5
votes2
answers1005
viewsjQuery - Use two functions together
I need the same method to be called in two events, that is, in the page load the data, and if the input value is changed load the code again. ($("#cpf_cnpj").load(function() or…
-
5
votes1
answer4311
viewsDynamic search with JSON - PHP - MYSQL
I’ve been looking on the internet but I couldn’t find any references, maybe because I was searching wrong, so I resorted to create this post. I have a query in the database (Mysql with PHP) that…
-
5
votes1
answer674
viewsPercentage of ajax requests
I wonder if it is possible to create a percentage in Ajax requests. For example: When the form is submitted it starts with 0% up to 100% (when completed) My ajax: index php. <script…
-
5
votes2
answers3481
viewsImage inside of round div
I have a div block with height and width of 55px and border-Radius: 100%; and I want to put an image inside, but if the image is rectangular and I leave it with border-Radius: 100%; it is oval!…
-
5
votes3
answers446
viewsHow to write and appear somewhere what I wrote
Well, in the sites nowadays are found some things that I can not explain, for example, think of a form asking your name, you fill in, and at the same time appears on your name, as if you were typing…
-
5
votes2
answers33846
viewsPassing JS values to another HTML page
It is possible for javascript to pass a variable whether it is global or not from one HTML page to another HTML page? index.html receive variable.html Like, any way to save that value and page to…
-
5
votes2
answers694
viewsHow to create a drawing in open book format and with content inside?
I need a drawing of an open book with contents inside, as the image below: ONLY WITH CSS!…
-
5
votes2
answers3983
viewsHow to disable form field using Jquery
I have a registration form where the client type the zip code by Request using Ajax to get the address, the neighborhood, the city and the state. But how do I disable these fields after they have…
-
5
votes4
answers3288
viewsSelect with redirection
I can’t program! but I can make small changes. I need to create aselect and when the person chooses the item, it is redirected <select> <option value="Vilhena">Vilhena</option>…
-
5
votes2
answers3753
viewsCheck if the login exists in jQuery before submitting the form
I need to develop a system in which when filling the customer’s registration, is verified if the registered email already exists in the database, and if it already exists, that informs the user (via…
-
5
votes2
answers544
viewsProgress bar on file upload and information registration
I’m developing a project, where I upload files, as well as a record of information. Both the file and the information are registered in the same form. So far so good, but usually, when there are…
jquery asp.net-mvc asp.net asp.net-mvc-5 asp.net-mvc-4asked 9 years, 4 months ago Leomar de Souza 1,074 -
5
votes3
answers20971
viewsHow can I open a modal window with window.open()?
How can I open a modal window with window.open() in Chrome, IE, opera, etc? It is possible to do this?
-
5
votes2
answers6866
viewsFix and change color in menu depending on scroll
Good afternoon I would like to know if there is any way to change the color of a floating menu in a one page template depending on the section of the page where we are. As in this example:…
-
5
votes1
answer475
viewsText Overlay with Doubt Bootstrap
I’m trying to make a text overlay on an image with bootstrap, but I’m not getting it. Someone would know how to do and help me? My code is: <section class="container"> <div class="row…
-
5
votes1
answer1497
viewsjquery function is not being recognized on the page
My situation is like this: I have a page in ASP that mounts a table. And I have another one, also in ASP that has functions, which do the following. Provides an html to popular table. I put a jquery…
-
5
votes2
answers188
viewsIs there a jQuery selector that takes the html from its own tag and also the content?
Example: <div id="quadro" style="float:left"> <h1>Quadro de horários</h1> </div> If I use $("#quadro").html() I only get H1, but I want H1’s html and div’s own. I need…