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
answer728
viewsError inserting Apostrophe in component using Auto Complete
I’m having trouble inserting the ' Apostrophe when I’m going to search for the component AutoComplete of Jquery UI. Jquery $("#<%=txtHipotePai.ClientID%>").autocomplete({ source:…
-
4
votes1
answer5275
viewsUpdate fields dynamically
I need my code to update the Increment field when the value of the Total field is changed to a value greater than the value of the Sub.Total or update the Discount field when the Total field is…
-
4
votes1
answer8622
viewsHow do I get in the Input file?
I need to send several attachments via Phpmailer and am using jQuery to get the value of input file, now I need to pick up the file path to be able to send by email, but when I take the path it…
-
4
votes1
answer3035
viewsHow to put one element before another with jQuery?
How to make a certain HTML before another div? I tried using prepend but it puts at first into the div but I want it to put up/before and outside of it, using prepend she gets like this: <div…
-
4
votes1
answer68
viewsWhat kind of "phocus" is that?
I was reading articles on this site, http://zenorocha.com/, and selected a content and the page closed in content and gave a special "Focus", I searched a little on the internet but found nothing…
-
4
votes1
answer448
viewsYou can block the Arrow from the DATE field
Would there be some way to block that little arrow there ?
-
4
votes1
answer1112
viewsLogical operators javascript
I have a question Because this operation doesn’t work? if ($(v).attr('jgForm-required') || $(v).attr('jgForm-email') && $(v).is(":visible")) { ...................... } And that works? What’s…
-
4
votes1
answer1107
viewsHow to handle Ajax requests with business error?
I searched the Internet and I still haven’t found an answer mature enough for a problem. I have an Ajax request and taking out errors released by the application as a possible connection drop, for…
-
4
votes1
answer335
viewsCheck for visible items within a div
How to check if there is any visible element or vice versa within a <div>? I can manage with jQuery and tried using el.is(':visible') but I couldn’t because I need to check if everyone inside…
-
4
votes1
answer355
viewsI can’t hide the SCM Music Player on Tumblr
I’m trying to hide the SCM Music Player and expand the main container to 100% (because the player reduced it a bit at the bottom) on my Tumblr blog but my code doesn’t work. The Javascript code:…
-
4
votes1
answer41
viewsIndex value not being recognized correctly
I have the following code jQuery: $('.dock-a').hide(); $('.dock').each(function(){ var DOCK = $(this); DOCK.click(function(){ var DOCK_largura = $(window).width(), DOCK_index = $(this).index(),…
-
4
votes2
answers2030
viewsAbort ajax request
I have a page where an ajax event grid is loaded. I also have on this screen a menu of actions. Once accessed, the page is loaded (including the action menu), and the events grid, being heavier is…
-
4
votes1
answer160
viewsShow message when filter does not find output
I’m using the excellent Isotope plugin to filter items from a page. Filtering occurs according to the classes used in li that are referenced in option. When selecting a filter, correctly referenced…
jqueryasked 9 years, 11 months ago Mauro Alves 546 -
4
votes1
answer892
viewsAjax request
I am loading the menu, from the system I am developing, through a request via ajax using jQuery, but the formatting of the menu is not as expected. My request via jQuery <script…
-
4
votes1
answer1179
viewsjQuery Datatables numerical column sorting containing hidden HTML
Making use of jQuery Datatables, we can indicate the type of ordering sought: $('#example').dataTable( { "aoColumnDefs": [ { "sType": "numeric", "aTargets": [ 0 ] } ] }); But if HTML is present,…
-
4
votes3
answers1271
viewsGet google search results with Jquery
Hello, I’m wondering how to do the following: Using Jquery, I want to get the link of 1° result of a Google search. An example: $("#bt_tempInfo").load("https://www.google.com/search?q=exemplo…
-
4
votes4
answers1730
viewsHow to display "Update your Browser" warning when it does not support HTML5?
How to show the warning "Update your Browser" when the user browser does not support HTML5 tags or CSS3 properties? One initiative that encourages this is the website…
-
4
votes2
answers3951
viewsWhat is the difference between mouseleave and mouseout?
In jQuery, what is the difference between mouseleave and mouseout? The two events seem to do the same thing!
jqueryasked 9 years, 4 months ago Wallace Maxters 102,340 -
4
votes3
answers8129
viewsLoading in ajax
How do I add a loading to my ajax? This loading would begin when ajax was started and finished when the result returned. my code: $.ajax({ url: url + "login/ajaxLogin", type: "POST", data:…
-
4
votes1
answer604
viewsAJAX request error - ASP. Net and Jquery
I have an aspx file where I created a script with an AJAX call to execute the method populaGridMembros on the table gwMembros, the method is working perfectly and returning a string in JSON format,…
-
4
votes2
answers189
viewsWhat is the inverse of :Visible in jQuery?
The Selector :visible jQuery is used to search for an element when it is visible. Example: $(this).find('li:visible').addClass('color-red'); However, when trying to search for invisible elements, we…
-
4
votes3
answers933
viewsScript swap image every Reload
I have 5 banners on the home, and would like each home shipment to display one of the banners. Ex: I stopped the site and displays the banner 1, navigated some page and returned to home displays the…
-
4
votes4
answers819
viewsShow post with ajax
I’m starting to log into jQuery only I need someone to write an opinion on my website and it will appear right below without having to update the page. wanted a person when inserting anything in the…
-
4
votes1
answer315
viewsIs there any possibility of performing a javascript action after the end of a download?
I have a link to a PDF on my site. I would like the page to enable another button at the end of your download. But the question is: this is possible only with javascript/jquery? If yes, how would it…
-
4
votes3
answers1766
viewsHow do I get the column number of the table where an input I’m writing is?
I have text inputs in cells of a table. <table> <tr> <td>Bola</td> <td>Casa</td> <td>Arvore</td> </tr> <tr> <td><input…
-
4
votes1
answer369
viewsTag <video> controlling by javascript
How do I so that when I click on the video it starts uploading, because I’m not getting if anyone can help thank you. Here’s the code snippet from the video: <div class="video"> <video…
-
4
votes2
answers257
viewsRestrict object method override in javascript
I’m trying to create an object where your methods can’t be changed. That is, its value, even if modified, should continue as originally defined. Example: var object = (function(object){…
-
4
votes2
answers954
viewsCss change in iOS only
I need to make a css change on iOS only, I used if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {} But it didn’t work. The code I need to change is this. .sdn-music-player>.yt-wrap>iframe…
-
4
votes6
answers650
viewsHow to extract a variable from within a function
Suppose I use the following function in .js... And inside it there are some variables. $(document).on("load", function(){ var Variavel1= "um"; var Variavel2= "dois"; var Variavel3= "tres"; var…
-
4
votes1
answer191
viewsJavascript - How to improve this code?
As there is the Code Review Stack Exchange in Portuguese and Stack Overflow PT covers this topic I ask for help in a code that I am working on: suggestions and criticism regarding a chat script that…
-
4
votes3
answers314
viewsHow to destroy a jQuery.fn whenever called?
I built a plugin using jQuery.fn.algumaCoisa = function(options, callback){};, But when I call several times on the same element, it multiplies the behavior instead of overlapping. Has some way of…
-
4
votes1
answer1335
viewslimiting the value that can be entered in the input
I have a php variable that has a value that varies depending on the moment!! Example 1st moment $valor = 300 second moment $valor = 20 3rd moment $valor = 5300 fourth moment $valor = 1300 I also…
-
4
votes2
answers707
viewsForce fields from selected radio
How do I make for the jquery validate validate only the selected radio input fields? Example: I have 2 input radio (natural person and legal person) I want to validate only the selected radio…
-
4
votes1
answer1835
viewsphp registration form NO database
I am learning php and need to create a form using only html, jquery, ajax and php without using database. The data must appear in a table below the form I was instructed to do using Session,…
-
4
votes1
answer831
viewsCalling JS function inside modal
I have an event where a modal is displayed, in it I want to call a function validateEmail but I can’t. validateEmail: function(email) { var re =…
-
4
votes3
answers2928
viewsHow to replace in html string only in texts within (between) tags?
I created a search that marks the text that was found. OBS 1: The search is done in a string that is HTML. OBS 2: I check if there is text inside this HTML through the index. OBS 3: If you find one…
-
4
votes1
answer283
viewsCalling a Setinterval variable
I have the variable X X = setInterval(function() { ... and after a while I stopped in that setInterval with the function clearInterval(X) How do I call this variable to continue the loop after I…
-
4
votes1
answer36
viewsA constant eventListener, or almost that
I was always in doubt when to this, because I remember that I took my test with ajax, and every time I updated, I lost the registered event. Example: A list of names <script>…
-
4
votes2
answers4875
viewsCreate Editable Table
I would like to create a table where your cells can be edited but meet certain requirements. What I have is this: HTML <table class="table table-striped table-bordered" id="vendaTabela"…
-
4
votes2
answers191
viewsCustomization scroll bar
Today, can we use CSS only to change the customization of the scrollbar of a DIV? If yes, how can I do it. Otherwise which script is best and how to use it?
-
4
votes3
answers20750
viewsHow to add option for a select by Jquery/Javascript
I’m trying to create a select which receives its options via Javascript or jQuery, the data is stored in an array. Example: for (i = 0; i <= cidades.length; i++) {…
-
4
votes2
answers7536
viewsSelect textarea text by clicking
How can I do it, when I click on a certain button, the text of a given textarea or input be selected? I wanted answers with jQuery and jQuery solutions (pure javascript).…
-
4
votes2
answers7903
viewsWhat is the difference between offset(). top and position(). top in jQuery?
What’s the difference between $(el)offset().top and $(el).position().top in jQuery? I realize that some cases the results are different.
jqueryasked 9 years, 1 month ago Wallace Maxters 102,340 -
4
votes1
answer926
viewsLoad data during page scrolling with jQuery
I need help to complete a code I’m developing. How can I do, so that when the user enters the page already appear the last 8 posts, and when the user gives the scroll, load the posts, within a loop,…
-
4
votes2
answers579
viewsHow to pass an array of php Stdclass objects to a JS variable using $.ajax() jquery
I have the structure below. I need to access each value in jquery. Array ( [0] => stdClass Object ( [post_id] => 140 ) [1] => stdClass Object ( [post_id] => 141 ) [2] => stdClass…
-
4
votes0
answers71
viewsSend image with ajax
I am trying to receive a PHP image sent through AJAX, but I was not successful. Follow the code: jQuery: $("#envmsg").submit(function() { $("#btn-enviarmsg").button("loading");…
-
4
votes2
answers2205
viewsSend javascript object to php
I have the following class in php: class Corretor { private $id; private $nome; private $registro; private $email; private $senha; function __construct() {} /* Getters e Setters*/ } And in my html…
-
4
votes2
answers1182
viewsHow to remove mask from the field before calling the controller with Asp net MVC
In my registration form I have a CNPJ field with the mask set via jquery $("#cnpj").mask("99.999.999/9999-99"); however the value is coming in my formatted controller, in my database this field is…
-
4
votes1
answer1018
viewsHow to remove an already selected item from an upload Multiple
I have this example and would like to remove an item from my selection. However it is not removing properly, has a problem with the index number, how could it solve this?…
-
4
votes1
answer283
viewsColorbox responsive
I’m using Colorbox in a project and need to make it responsive. I was able to change the size of all Divs with Media Queries in CSS, but div #colorbox does not change the size! This causes the page…