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
-
6
votes1
answer2385
viewsLoad content dynamically with AJAX
I have the following HTML code: <label id="meuTemplate" for="criaAssoc" class="instAssoc" style="display:none"> <strong>ID:</strong> <input name="idInstrucao" type="text">…
-
6
votes5
answers1876
viewsRetrieve a final value from a json in Javascript
You can recover a result value from a url by jQuery? My problem is this, I need to receive the final result of this url:…
-
6
votes3
answers5281
viewsNavigation without a refresh!
I’m developing a website that has a div where I have a script that lists results of an SQL query. These are images, in this case. The site was developed on just one page, so by clicking on the…
-
6
votes1
answer208
viewsjQuery validate - skip_or_fill_minimum rule does not fire if used more than once
I have a form that consists of four inputs and they are grouped in pairs. The rule for this form is very simple, if I fill in one of the pair’s inputs, I have to fill in the other as well or fill…
-
6
votes1
answer179
viewsDiv appear at the bottom (Superscrollorama)
I have a problem at Scrollorama. I wish the div started showing up right at the bottom, but she’s only showing up when I’m halfway through the site. The class: $(document).ready(function() { var…
-
6
votes2
answers244
viewsJquery iframe transport plugin works on IE10 cross Domain
I need to post xml using Federal Justice webservices, but I can only do it using IE10 in compatibility mode. I received the information that the jquery iframe transport plugin would overcome this…
-
6
votes2
answers5503
viewsExport from html table to excel
I am trying to export an html table to an Excel file. This jquery plugin works almost perfectly for me. My problem is with accentuation, which comes to excel with strange characters. Some tip on how…
-
6
votes4
answers6021
viewsExchange text by clicking on it to display/hide an element
I have the following example done in Javascript, of which is a text written "See more", that when you click on it you can see more text: Example in Jsfiddle Code <head> <title>…
-
6
votes2
answers2854
viewsHow to view a PDF in the browser with an ajax request?
I make a requisition like this: $.ajax({type : 'GET', url : URL_APP_CONSULTA_BOLETO_DIVIDA_ATIVA + url}); I have a java method that returns something like this: return…
-
6
votes3
answers2397
viewsjQuery autocomplete shows no options
Description Need: I need to make an autocomplete with jQuery, PHP and from what was selected, caught the ID, I make a query in the database and display what I need. Problem: I’m having trouble…
-
6
votes2
answers234
viewsHow to perform an action before 'mousedown' in javascript/jquery?
My intention after all is to turn a 'mousedown' into a "Ctrl + mousedown". But I can only activate Ctrl after mousedown is processed. Example: $(document).ready(function(){ $('#CC…
-
6
votes2
answers653
viewsjQuery resizing animation
Hello I am making a site with a small animation that is changed depending on the size window but there are 2 problems in Nav bar. Problems are: window > 800: animation is only trigered when I…
-
6
votes3
answers691
viewsHow to leave Facebook comment plugin with 100% width?
Is there any possibility to leave the facebook plugin with 100 width%? I think his default is 550px wide.
-
6
votes2
answers1772
viewsIs it possible to have dynamic rules with jquery validation?
I got three fields, two inputs text and between them a select. If one of the first two is filled in the other becomes mandatory. The problem is that when a single value, in the latter case, of the…
-
6
votes4
answers9080
viewsSelect2 with AJAX
For some reason my Select2 using AJAX to fill it is not working. When I put a Debugger in the code, it does not enter the method result: and also returns no error. HTML: <input type="hidden"…
-
6
votes2
answers7182
viewsHow to send an Array via POST to a PHP controller
I need to pass an array via POST to my PHP controller, the only way I have in mind is not to pass an array, but to pass the information through a separator (, |), but I didn’t want to keep giving it…
-
6
votes2
answers237
viewsHow to add the fadein effect to this image transition code
I wanted to know how I can add the effect .fadeIn(500) in this system that exchanges the background every 10 seconds. <script> inicial_background = 0; function mudar_background(){ img = new…
-
6
votes1
answer73
viewsHeight of div no load
How to leave the field at 2 divs about the same height as #result4 that I gave a load? <script> $(document).ready(function() { $( ".buscascript<?php echo "$row[id]"; ?>"…
-
6
votes1
answer1286
viewsOpen images on the same page with Fancybox in Cakephp impossible
I’m trying to make a gallery, which consists of a list of thumbnails, which by clicking on the items would eventually make a popup window appear as in first example here. After several failed…
-
6
votes2
answers3697
viewsHow to recover values of fields loaded with jQuery
Hello, I recently ran into a problem loading div content dynamically using jQuery, but it turns out that when I upload the content to that div, I can’t recover the values that are sent from it. The…
-
6
votes2
answers3232
viewsLimiting text in CKEDITOR
I’m trying to make a character limiter in Ckeditor, but I couldn’t find any way, <textarea> does not work when using CKEDITOR. I tried using the wordcounter plugin which now looks like only…
-
6
votes1
answer75
viewsSend data along with event
As I venture through jQuery some questions and problems arise in the middle of the way, one of them is: is it possible to send a data through an event triggered by another event? Something like…
-
6
votes3
answers2852
viewsHow to force a download with ajax?
I am using PHP’s DOMPDF class to generate reports of accounts receivable with dynamic filters. The user selects the filters in a form and asks to generate, so far so good. But he will have the…
-
6
votes5
answers27365
viewsRemove jquery field mask
I have this code to put mask on the field: (function ($) { $(function () { $("#txtCnpjPesquisa").mask("99.999.999/9999-99"); }); })(jQuery); Now here I must pass the field…
-
6
votes3
answers2834
viewsRun action after 2 minutes without moving the mouse
How to create a function in jQuery redirect the visitor to a page after the visitor does not move the mouse for 2 minutes or more? Example: The user is on the page php products. and if the user is…
-
6
votes3
answers13356
viewsHow to fix the position of an element inside a div with scroll( With css )
It is possible to fix an element( div, img, p ) in a div with scroll and with position:relative and using only css? *Currently reposition the div using the function $('elemento').scroll() and…
-
6
votes2
answers1104
viewsWhat is the best way to upload files with Ajax?
I could take a code on the Internet paste here and try an answer but I prefer that help me with the logic and programming of a script to upload images in Ajax. I don’t know how to start, I’m a…
-
6
votes1
answer3845
viewsSlow datatables
I have a database of 5,985 records. I am using dataTables, but it takes a long time to load. It is possible to improve this load? See my code: <div class="row"> <div class="col-xs-12">…
-
6
votes1
answer2947
viewsHow to get the position of a given element in a list through a specific attr?
I have a UL with some items. For example <ul class='ordemQuestoes'> <li idquestao="28" >Questao 28</li> <li idquestao="2" >Questao 2</li> <li idquestao="17"…
-
6
votes2
answers2114
viewsHow to perform an action when reaching a certain scroll height?
I have a function that every time I give scroll he calls a certain function, only I want to call him only once $(window).on('scroll', function(e){ //aparece segundo menu if($(this).scrollTop() >=…
-
6
votes3
answers6367
viewsHow to disable Developer Tools options in Chrome
Supposedly Facebook uses a code similar to the one on the link http://snapbuilder.com/code_snippets/snippet.php?sid=174&printable=1 to disable and put a warning to your users. Since the above…
-
6
votes3
answers13619
viewsHow to split a string into an array in Javascript?
There is an elegant way to split a string into an array based on the example: var x = "FAT* FAT32*"; And result in something like this: x[0] = "FAT*"; x[1] = "FAT32*";…
-
6
votes4
answers1483
viewsRelease link after completing form
I’m a beginner in Javascript/jQuery and I’m wondering how to release a link right after all inputs are filled, otherwise it stays locked: Follows HTML: <form id="formulario">…
-
6
votes2
answers8986
viewsFunction to mark/deselect checkbox, jquery
How can I check/uncheck checkbox in jQuery by clicking a button and at the same time giving an Alert reporting whether it has been checked or unchecked..
-
6
votes3
answers6532
viewsHow to detect click on Chrome Back/Next/Reload buttons
How do I detect when the user clicks on the Back/Forward/Reload buttons of Google Chrome? I already made a scheme to make a check before the user exit the page through the elements of the page…
-
6
votes2
answers1334
viewsHow to automatically scroll to the top when viewing the page footer?
I’m making a site, which has some animations, and when arriving at the bottom of the site for the first time, should trigger an event where the page goes back to the top, but in the following times…
-
6
votes6
answers2305
viewsTransform results combination function into a dynamic function
I have a function that generates all possible combinations of numbers from 1 to 10. The combinations are 4 numbers, that is, each combination has 4 different numbers. Ex: [1,2,3,4], [1,2,3,5],…
-
6
votes1
answer754
views$. getJSON does not record return on variables
I created a function that takes the values of a JSON and (should send these values to variables within the function) so I could use these variables in the function continuation. The problem is that…
-
6
votes2
answers4323
viewsFormat number for only 2 digits
I have a script that returns: 4.499999999999 But I wanted it to return only 4.4 or round to 4.5, just do not want it to stay more than 1 digit after the comma, how to do?
-
6
votes1
answer1438
viewsHow to make an image "loose" inside a div
I need to leave a "loose" image inside a div on my mobile site. A div has fixed dimensions but the image is much larger, so it would have to be something similar to iframe, however, without scroll…
-
6
votes6
answers10935
viewsHow to receive a JSON object from an external url/domain?
I found a Lottery API that brings me the data of the result of a Lotofácil draw, but I am not able to access the data of the JSON object. I’m trying this way: $(document).ready(function(){ $.get(…
-
6
votes1
answer479
viewsPrivate Property / Protected JS / jQuery
Is it possible to make an object in js/jQuery where it is visible only using the method, for example get / set? An example of an object: if I give a console.log(pessoa.documeto), it will display the…
-
6
votes3
answers1436
viewsInformation when Hovering Mouse in Photo
Does anyone know how to put a description in the photo, with a black half-transparent background? As with many blogs, one example is rihanna’s website. Something like a Timeline or a blog with…
-
6
votes1
answer2499
viewsHow do you always get the last video from a Youtube channel?
I have a div <div class="player"></div> and inside it, I want the last video posted on a channel to always appear. I have this structure in jQuery, but I can’t get it to pull only 1.…
-
6
votes3
answers954
viewsVertical slider navigation including highlight thumbnails
There is a slider here on this website that has a vertical navigation that is located on the right side, which includes the thumbnails of the previous slides and also of the following slides. I’d…
-
6
votes1
answer130
viewsIs it possible to add personal sites to the google maps v3 autocomplete?
I wanted to use the search of Google addresses but also wanted to introduce some personal areas. In the div which is generated by google I can add the fields I want, but I can’t create a function in…
-
6
votes3
answers1923
viewsUpdate values after dropdown change
I know almost nothing about Javascript but I managed to use Chosen to change my selects. What I’m not getting is to use the Trigger that the site indicates to update the field. I want each time you…
-
6
votes1
answer1761
viewsHow to validate format and compare two dates to enable buttons
I am using a script* to enable a button when two validations are made. The first one checks the format, and the second one if the initial date is lower than the final one, but I’m having some…
-
6
votes1
answer378
views -
6
votes2
answers786
viewsModal display when submitting a form
How do I display a modal when I submit a registration form? The content of this modal will be just a message. Here’s the thing, on this form, you send a file and some information. As it usually…
javascript jquery asp.net-mvc asp.net asp.net-mvc-5asked 9 years, 4 months ago Leomar de Souza 1,074