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
-
1
votes1
answer54
viewsHow do I get the top number that my animation is at the moment?
I have a Javascript animation that goes from top: 0px in CSS and by jQuery Animation he goes to the top: 385px which is where the animation ends. I wonder how I get the number he’s currently on top…
-
1
votes2
answers326
viewsForm does not commit because of jquery’s $("#div"). attr("disabled",true); command. What to do to resolve?
$("#button").click(function(){ $("#button").attr("disabled",true); $("#button").animate({opacity:0.2}); var nome = $("#nome").val(); var telefone = $("#tel").val(); var email = $("#email").val();…
-
1
votes1
answer2700
viewsHow to change validation text according to each type of validation in the Start Date field
I have a code that validates with jquery validate and is 100% functional. When validation occurs, jQuery Validate always displays what is written in the field title of input. Since I have different…
-
1
votes1
answer1273
viewsHow to display a sequence of images from a single link?
Usually when using image gallery plugins (Lightbox, Fancybox, etc.), we load the image A from Thumb A, the image B from Thumb B and so on. When we set a relationship (rel="x"), we were able to…
-
1
votes1
answer387
viewsInternet Explorer blocks javascript
I programmed a website and would like it to work in all browsers. But in IE, in all versions, it does not work as desired. I noticed that he was blocking my javascript and jquery codes with a…
-
1
votes2
answers2165
viewsJquery css if color text condition
I have this code. The problem is that everything is working fine except the color of the text does not change. jQuery: $("#btnContactMob").on("click", function () {…
-
1
votes1
answer67
views"append" event on page load
In this code section, the div1 is positioned in the div2 when you click on it, but I wanted it to be done automatically when loading the page without having to click on it. I have tried replacing…
jqueryasked 10 years, 6 months ago Vinny Oliveira 77 -
1
votes1
answer59
viewsPreview information when selecting field in input
I have a doubt, actually I do not know if it is possible, since I searched the net and found nothing. I would like to know if it is possible to preview a "profile" by selecting the name of this…
-
1
votes1
answer1240
viewsHow to loop in a time interval of an animation in Jquery?
I have a Guitar Hero-style animation and I’d like to repeat the green note animation by falling in a defined time interval, but I’m not getting it... http://jsfiddle.net/3Qs7D/1/…
-
1
votes1
answer718
viewsHow to return real value from a column in jQuery datatables
I am feeding my table by ajax and customizing the return. In the column status( 0 or 1 ) I used the "fnRender" to return a label of active or inactive according to the value, but I need to use this…
jqueryasked 10 years, 7 months ago Alessandro Gomes 730 -
1
votes2
answers1725
viewsWindow Modal Frame Overlay
My scenario is the following, I have 3 frames top (100px) content( * ) and footer (20px) I would like to open a modal window (the link is the top frame)where the mask was above the 3 frames( in the…
-
1
votes2
answers3742
viewsHow to check if Internet Explorer is smaller than version 10?
I need to do a browser check to know if it is Internet Explorer and if it is smaller than version 10. How to do? PS: My idea is to tell the user if you are using a version less than 10 that…
-
1
votes1
answer799
viewsShow jquery-ui icon on the close dialog button
I am customizing the appearance of the jquery-ui dialog widget and so far my css is as follows: .ui-dialog { position: fixed; z-index: 1050; display: none; /*overflow: auto;*/ /*overflow-y:…
-
1
votes1
answer58
viewsFeed view fields to controller
I have used a way to load fields in the view as follows: I make a method by returning a Json in the controller, then create a Jquery function that takes this return and feeds the view fields, in the…
-
1
votes1
answer179
viewsProblem in SVG image. Event mouseenter(), Mousemove() and mouseleave()
I have a SVG image with the States of the Country and I need that when passing the mouse over a State, the image with the name of the State appears and follow the mouse. I’ve already made the image…
-
1
votes2
answers980
viewsEnable fields from the completion of a previous field
I need to make a form that, to enable a field is required to fill in a previous field. Since there will be a pagination between a question and another (next or previous). You can do it in Ajax? I’m…
-
1
votes1
answer504
viewsHow to map a http request parameter to an Enum in java?
I’m making an ajax requisition like this: $.ajax({ type : 'POST', url : apiURL + '/play', dataType : "json", data : { against : "ANYBODY" }, success : function(data, textStatus, jqXHR) { // ... },…
-
1
votes1
answer54
viewsJplayer does not work on IE8
I have an audio listing on a page I’m developing, in Mozilla and Chrome, IE9 and IE10 was ball show, but on IE8, it does not perform when I press the 'play button'. Website of the Jplayer:…
-
1
votes2
answers121
viewsProblem running Jplayer when there is more than one item
I have a list of 3 audio players per page, I did all with Jplayer. What’s happening is that when I run the first item, it runs all together. That is, if I click on the first item, it runs the 3 that…
jqueryasked 10 years, 5 months ago Felipe Viero Goulart 3,693 -
1
votes1
answer1578
viewsProblem to retrieve dynamically added array fields[]
Hello, everybody!! I have this script that adds fields dynamically in my form, but I can’t go through the values added by it, I can only get the first value of the field that already comes on the…
-
1
votes2
answers2177
viewsHow to change anchor links URL?
How to change that "#" sign of the anchored links? I am creating a slide menu in CSS and it is horrible this sign in the browser bar. Is there a workable solution? I read about the jQuery Address,…
-
1
votes1
answer260
viewsCall in Ajax
I’m implementing a html of a system using the php and I’m also making a call on ajax to open any page, but when it returns to mine url, it does not read the include page. Example: The html page:…
-
1
votes1
answer1710
viewsPass parameters by jquery through a table
a question: I have a table and in it two columns, which are: CNPJ and Razão Social. Well, I need to do this: When I click on the column CNPJ, for example, should pass the value of CNPJ that is being…
-
1
votes1
answer800
viewsTransition effect of website content
I visited that website and liked the way the content moves, when it is clicked on More Articles or Hide List, I’d like to implement it on a website I’m developing. I’m having difficulties to find…
-
1
votes2
answers1655
viewsClose Download Dialog Box
How do I close a download window with jQuery in the Internet Explorer? Example: <?php $arquivo = $_GET["arquivo"]; header("Location: $arquivo"); echo "<script> $(window).ready(function() {…
-
1
votes1
answer88
viewsError opening Partial’s in a new tab from a function in javascript
I have the following case: I have a navigation page of "Third Party", with several Partials defining their corresponding data. To do that navigation I’m doing by javascript, and carry the Partial as…
-
1
votes1
answer421
viewsCatch all Divs with jquery
I have several Ivs on my site, where they contain the following class "code$Numb" where $Numb is a random number, as do to capture all Ivs with the code regardless of $Numb?
jqueryasked 10 years, 4 months ago Vinicius Eduardo 351 -
1
votes2
answers926
viewsHow to store the date and time each click on the form
I have a form and I need to store the date and time with each click of the form or at least the first. I think this should be done via Jquery or Javascript. With each question, the form has a button…
-
1
votes4
answers20624
viewsError: Uncaught Typeerror: Undefined is not a Function
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script…
-
1
votes1
answer71
viewsCapture current selected option - multipleselect
Given an Multiple select field, how to get, via javascript, the value of the option that was last selected (current)? I tried to use the expression below, but the last value (in alphabetical order)…
-
1
votes1
answer145
viewsFeed Hidden field by clicking on a table column
This is my jQuery that builds HTML into my cshtml. $(data.resultado).each(function () { str += '<tbody>'; str += '<tr>'; str += '<td>'; str += '<label…
-
1
votes2
answers1914
viewsHide or Show div via a Radiobutton via Jquery
Follow the code below: HTML: <asp:RadioButtonList ClientIDMode="Static" ID="rbAtivoInativo" runat="server" RepeatDirection="Horizontal" AutoPostBack="true">…
-
1
votes2
answers7725
viewsCopy content from a div by clicking a button
I have a URL shortener, where there is listing with all the generated links. What I need is to create a button on the side, where when the person clicks on it, automatically copy the div containing…
jqueryasked 10 years, 4 months ago Felipe Viero Goulart 3,693 -
1
votes1
answer1041
viewsLoad and read XML via AJAX Cross-Domain
I have an AJAX Cross-Domain request that receives an XML. After a lot of work, I was able to download the XML but I don’t know if I did it the right way because it never arrives in Success. Follow…
-
1
votes2
answers138
viewsAnimation when the element reaches the center of the page (jQuery)
I would like to know how I get the positioning of a certain element when it reaches the center of the "window", because I need to do an animation when it is centered. Thanks to those who answer with…
-
1
votes1
answer211
viewsApple website effect
I would like to know what is called this effect of the Apple site, of when the user scroll, it jumps to the next section. Click here to see the effect.…
jqueryasked 10 years, 4 months ago manzetti.denis 475 -
1
votes2
answers1287
viewsKnow last index of a . each
I’m walking a .each and I would like you to present in the last position a alert. So I’m trying to get the last position of index: if (index == len - 1) { alert("Última posição"); } Complete code:…
-
1
votes2
answers438
viewsHow to improve code workflow without using synchronous ajax?
How to improve this script? The function copiaArea() should take the first return of the array and send to the windows clipboard, detail: I am developing for IE, works exclusively in it this…
-
1
votes1
answer519
viewsRemove Scroll Fixed from sidebar
I have this code that when the scroll moves it fixes the sidebar in the top, until then it is correct now I need that when the sidebar approaches the footer, be applied a scroll bottom, or something…
-
1
votes1
answer116
viewsjquery sorts my date automatically
I send a json to any url, like this one: {"130":"chocolate","129":"banana","120":"chiclete"} Then I’ll get $. $.get(url,function(data){ console.debug(data); },'json'); result ( it sorts…
-
1
votes1
answer913
viewsGenerate PDF from selector on current page with CSS
I would like to know how to generate a PDF from a selector that I define and that all the formatting of this selector comes correctly in PDF? I want to make client-server. Example: Imagine that I…
-
1
votes2
answers651
viewsHow to use onload on DIV elements?
I am set some similar functions for different pages on a website. So these functions are in the same file. When the JS file is loaded the functions $(function() { /*function1*/ }); and $(function()…
-
1
votes2
answers446
viewsjQuery Mobile, what are your closest competitors?
I’m using jQuery Mobile to build a simple interaction with a local system. Although good recommendations I am going through problems and have some moments that the application of nothing hangs, does…
-
1
votes1
answer1138
viewsHandle get(403,404,405) errors with jquery
I’m using history API to load the clicks in the menu, in a div #content, ok so far so good, but I’m handling the errors by JQUERY even look only $('a').click(function() { pageurl =…
-
1
votes2
answers1020
viewsLock a button inside a datatable in the primefaces
I have the following problem, I own a dataTable which contains the possibility of editing the data by editing by line, using the tag rowEditor and cellEditor. Next to this I have a button to delete…
-
1
votes2
answers5325
viewsHow to force the "change" event of an input select, even without choosing another value?
Are two problems: 1 - When loading an input select I tried to use a Trigger to force "change", but it did not take effect. 2 - I have 2 selects. When I actually change the value of the first, the…
-
1
votes2
answers73
viewsWhy does this jquery example of w3s not work within web-inf?
Good guys I have a project in Maven, and in my folder I have this structure src > main > webapp > WEB-INF > jsp > index> index.jsp, demo_test.txt This code is inside my web-inf…
-
1
votes1
answer111
viewsCheck page and assign DIV
I have 10 pages, a part of the layout is equal in 9 of them, so I will make a include to spare me the trouble of repeating it 9 times. The thing is, I’d like to use that include on every page, and…
-
1
votes2
answers271
viewsCreate a bottom bar with Tabs
Is there any jQuery plugin that creates an options bar like the one in the project PHP Debug Bar? Does anyone have any suggestions for implementation? The "Messages | Request | Timeline" is a thin…
-
1
votes1
answer144
viewsResponsiveslides with JSON as Datasource
After much search for a very simple image gallery I ended up finding the Responsiveslides.js which is not only quite simple, but also works satisfactorily in smartphones (even if the latter does not…