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
-
4
votes1
answer136
viewsVestige of mouse click
I need a script, that on an entire page where a click appears a ball in the place where it was clicked, but that after a couple of seconds disappeared. It doesn’t need to be ripples, just something…
-
4
votes2
answers4861
viewsHow to order a JSON in descending order?
I have a JSON value that I want to order it in descending order (I think in the example will give to understand). Example: var json = { 'um': { 'cont': '5' }, 'dois': { 'cont': '10' } ... }; So in…
-
4
votes3
answers4195
viewsHow to insert an element between two elements?
Explanation: I have a <div> parent containing two <div> daughters, however I would like to insert a <table> using javascript, between, that is, in the middle of these two…
-
4
votes3
answers8971
viewsGo to the next element with next and add a class to the previous one
I’m trying to make sure that by clicking on the "next" link, one of my lists is revealed and the previous one is hidden, using a class that has display: none;, tried with .next() of jQuery but there…
-
4
votes4
answers1101
viewsHow to check with javascript/jquery which object(s) is(is) triggering a scroll bar on the page?
I would like to build a verification script, because it is often difficult to find why the page is scrolling, especially when we use some responsive framework that has a lot of css code and a lot of…
-
4
votes3
answers3627
viewsHow to Lock a Responsive Page in Portrait(Picture)?
Is there any solution to display the web page always in Portrait(portrait) on mobile devices, even if the user turns to Landscape(landscape) mode? That is, always leave locked in Portrait.
-
4
votes1
answer153
viewsThe Greensock hotel fires all animations instead of just one
I have a list with several images, and when with the hover, take place 4 animations, a overlay, another bg of overlay, image caption appears and another "read more" text also appears. All the…
-
4
votes2
answers3675
viewsUse jQuery function only on @media screen and (max-width:960px)
We know that there are @media queries. They work with CSS. But I need to do it with Javascript. I need bxSlider to work only on @media screen and (max-width:960px).…
-
4
votes2
answers17667
viewsHow to send string variables as parameter to call Ajax?
The following Ajax call would send PHP the parameters corresponding to the form that called the function: var foo = "bar"; var bar = "foo"; function register(){ $.ajax({ method: "post", url:…
-
4
votes2
answers3494
viewsHow to change the text of the OK button of Alert?
People I need an Alert with the "Confirm" button instead of the "OK" button. how do I do that?
-
4
votes3
answers257
viewsProblem with Jquery UI Slide Left
I’m developing a project and I needed to know how to slide a div to the left. I am currently using: $('#idDiv').toggle('slide', { direction: 'left', distance: 450 }); I wanted mine to div of 500px…
-
4
votes1
answer785
viewsjQuery Masked Input - Is it possible to recover the mask attached to the field?
I’m using jQuery Masked Input Plugin with jQuery Validation Plugin. When a form field loses focus, the validation plugin shows a message, but this is not happening with the fields that are have…
javascript jquery jquery-validate jquery-masked-inputasked 10 years, 9 months ago Philippe Gioseffi 3,202 -
4
votes4
answers43355
viewsCheck if string has only numbers
Which command can I use to know if inside a string only has numbers.. For example, I’m using the prompt: var quantidade=prompt('Quantidade de entrada de produtos(somente números)'); I would like to…
-
4
votes5
answers2014
viewsDisable a Ubmit and Enable only when radio minimum Buttons is selected
I tried to do a function but came out with some strange bugs, it has to be more or less this script, but enable the button only if 5 or more radio Buttons are marked. Remembering that my form is…
-
4
votes1
answer1070
viewsFirefox and Internet Explorer iframe problems
I have a problem with Firefox and Internet Explorer when using a iframe to upload files to the same page. Chrome works perfectly, but in Firefox and Internet Explorer, when I click link the iframe…
-
4
votes1
answer1994
viewsGrouping in the Ireport
I am developing an application in Java where I extract PDF and EXCEL reports, using Jasper with Ireport(3.7.2).One of these reports needs to have data grouped by a certain element. I did some…
-
4
votes1
answer3560
viewsSite loading progress system
Some sites like Walking Dead and Youtube has a system that appears on top when the page is loading and appears an image in GIF or CSS3 arrodeando on the side or a progress bar. What is the name of…
-
4
votes2
answers537
viewsHow to avoid calling the function
I have in my systems a call for a function of javascript and it always worked. It’s a function to display/hide an image by loading to the user. The problem is that sometimes I have to call this…
-
4
votes1
answer740
viewsHow to link when clicking a div
I forgot how to make links with jQuery that run when clicking on a div. The link I needed was with target Blank. I found it from here but I didn’t understand the code and I couldn’t use it.…
-
4
votes2
answers156
viewsIs it possible to have more than one CSS rule for an "img" in a "div"?
How to apply two (or more) CSS rules to elements img from within a div? I use the Tinymce editor and when I send an image for posting or messages (pms) I have to set in a specific measure for each…
-
4
votes1
answer483
viewsScope of variables within $.getJSON
The variable role receives a new value in each Loop, when she’s inside the $.getJSON it takes the second value of the array and changes no more. There are two console.log(); in the code, I put their…
-
4
votes1
answer248
viewsjQuery Unique, difference in Chrome and Firefox?
I’m having an unexpected behavior with the uniquejQuery. The following command: var x = [1,2,1,2]; var y = $.unique(x); document.write(y); Chrome results in 1,2 (which is correct), but in Firefox…
-
4
votes1
answer830
viewsHow to access elements of an iframe from an external page?
I need to access an id inside an external page I’m rendering in an iframe on my site. That permission error is occurring. How to resolve this? This is the page link:…
-
4
votes1
answer3989
viewsBlock website rotation in mobile version
I have a website that would like to lock in its position on screen when accessed from a mobile device, preventing it to rotate or rotate together with the mobile. Is there any Javascript code that…
-
4
votes1
answer487
viewsHow to make div s colapsáveis open without the buttons of the other div s descend?
I’m making a portfolio gallery, based on Bootstrap so it’s responsive. So I have a set of thumbnails that will match a work that should be aligned: By clicking on them open a collapsible DIV. I…
-
4
votes2
answers7844
viewsHow can I get the id in classes with equal names?
How can I get the id of the alternative and know if it is 0, 1 or 2. <div class="quest-alternatives"> <p class="brand-alternative"> <span class="brand-id hidden" style="display:…
-
4
votes3
answers7029
viewsInsert PHP into div with Jquery (.html)
I have a div that will receive the content, I have a vertical menu, which will define the content that the guy will see. The problem is that it does the .load() of the file, but it loads as far as…
-
4
votes1
answer328
viewsDoubt about POST and GET in php
I tried searching the internet, but I couldn’t satisfy my doubt... I started programming web recently, although I have already used post and get, I found myself in a situation where I was "stuck". I…
-
4
votes4
answers4583
viewsCheck for image return via Javascript
How to check if the image returned with error 404 via javascript. Below an example code, I want to check if the get of this image is 404. If I want to put a certain image, if it is not going to…
-
4
votes2
answers8268
viewshow to have the current date with Angularjs
How to have the return of the current date via javascript, in the time-label class can use jquery or angular. The idea is to have the last update date. If anyone knows I’m grateful. You cannot enter…
-
4
votes1
answer12235
viewsResize <td> using bootstrap
Have how I create a table with Bootstrap and fix the size of each <td>? I would like to be able to make the cell size of a table more flexible with Bootstrap, it is possible?…
-
4
votes1
answer1040
viewsImage recognition within a larger image
I would like to do a part of my application, where the user would upload an image full of drawings inside, he would then select an area of the image and I would search the entire image uppada,…
-
4
votes1
answer1102
viewsHow to give Play/Pause in a SWF contained in an HTML?
My HTML is like this: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="440" id="movie" align=""> <param name="movie" value="swf-file.swf"> <param…
-
4
votes2
answers266
viewsUpdating Header with Jquery after page reload
I have a partial in Rails to load my header in all pages.. _header.html.erb: <ul class="nav navbar-nav"> <li><%= link_to "Home", root_path %></li> <li><%= link_to…
-
4
votes4
answers3935
viewsAutomated tool to join multiple style sheets (CSS) into 1 and to join Scripts (JS) into 1 Sheet only
I searched the internet for ways to join Stylesheet CSS and Script Sheets JS in an automated way, however, I did not obtain good results. I own about 17 Style Sheets and 15 Scripts, if I do it…
-
4
votes2
answers1287
viewsButton that when clicked shows only content of certain class
Hello, I’m creating a Javascript system, where I need a button to show only paragraphs with a certain class in a div with hidden content. Example: <button id="btn1">Abre classe1</button>…
-
4
votes1
answer247
viewsjQuery Window plugin gives "$ is not defined" error
I’m having the following problem, I found a plugin, jQuery Window, that opens windows with minimize button, maximize, etc., and opens pages inside this window, only that I’m not able to make it…
-
4
votes2
answers6247
viewsRemove comma with jQuery
I have a part of a blog that is manageable. These are the TAGS. By default in the system, you inform the TAG in a specific field and it includes in the blog. The code is like this: <a…
jqueryasked 10 years, 6 months ago Felipe Viero Goulart 3,693 -
4
votes1
answer184
viewsAnimation of div, without CSS3 for future position
I have a so-called product gallery, with Ivs lined up using {display: block; float: left;} I made some Divs disappear depending on the menu selected using fadeOut() and reappear with fadeIn(). I…
-
4
votes2
answers1339
viewsHide and Show all li decendentes of a ul - Jquery
I have the following lists: <h4>Procedures</h4> <ul> <li">Foo</li> <li">Foobar</li> <li">FooBarBazz</li> </ul>…
-
4
votes1
answer1648
viewsHow to create a slide with two Divs?
I need to create a slide with two Ivs. I made one here only that is appearing a scroll bar below, look at the Jsfiddle. HTML <div class="carrousel"> <div class="item active" id="about">…
-
4
votes3
answers529
viewsHow to replace the last appearance of a character?
I have a loop that mounts strings in this format: var Sabor[0] = "Mussarela, Calabresa, Cebola"; var Sabor[1] = "Mussarela, Presunto, Calabresa, Tomate, Ovos, Pimentão, Cebola"; But I’d like to…
-
4
votes1
answer378
viewsdiv that does not exceed certain limits
Well, on that link :: http://voky.com.ua/crostini/ there is a menu that when loading the page is not fixed at the top of the screen, but when descending the page a little this menu appears and is…
-
4
votes3
answers657
viewsHow to make the page load only after the return of getJSON?
I am recovering a list in JSON using the function jQuery.getJSON: http=jQuery.getJSON(url); This code returns the object perfectly, but the request takes longer than the loading time of the page…
-
4
votes3
answers627
viewsHow to collect the height of an element with jQuery
Oops, I’m not getting the height of an object in the document. I have a slider, which works with ul > li (may be relevant), and inside a slide <li>, I am placing via javascript and c# three…
-
4
votes3
answers95
viewsHow to use this!
I need each button when clicked yellow and the others back to normal...: $( "#botoes" ).each(function() { $(this).click(function() { $(".botaoativo").removeClass('botaoativo');…
-
4
votes4
answers11127
viewsHow to hide the Scrollbar, but without deactivating it
I wonder if you can disable the Scrollbar without deactivating it, IE, hide the Scrollbar but leave it working normally, as if he had the show.
-
4
votes1
answer1685
viewsUbmit in form with jquery does not work
I have a form and inside this form I have an input file type. <form id="formulario" method="post" action="upload.php"> <input id="imagem" name="imagem" type="file" class="da-custom-file…
-
4
votes1
answer657
viewsHow to determine the direction of the touchmove
How in javascript/jquery to know which direction is the touchmove ? Example: var ts; $(document).bind('touchstart', function(e) { ts = e.originalEvent.touches[0].clientY; });…
-
4
votes1
answer2114
viewsHow to change the URL of an image when the resolution is below 767px
I have a website that he’s responsive to. The problem is that the header has a blue background and a white logo. When the resolution is below 767px it changes the menu. Imagery: As it is on the…