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
-
2
votes2
answers762
viewsIt is possible to track the . js files that are called when running a Jquery event
For example, if an event click applied in a link call a function that is in the file A.js, which in turn needs the B.js, who needs the C.js. I wonder if you have how to know this dependency between…
-
2
votes1
answer2257
viewsSubtract date to get countdown
I currently have the following code: var now = new Date(); var countTo = 50 * 24 * 60 * 60 * 1000 + now.valueOf(); $('.timer').countdown(countTo, function(event) { var $this = $(this);…
-
2
votes3
answers805
viewsDoes not add values
I’m trying to add two values, for example: a = 400; b = 200; I try the sum through "a + b", however instead of jQuery returning me "600" it returns me "400200". The real code is this: var startField…
-
2
votes2
answers903
viewsCopy a selected option from a select Multiple to another select Multiple with jquery
I want to copy a option or more options’s selected from a select multiple to another select multiple with jquery. <select id='cursos' multiple> <option selected>curso 1</option>…
jquery html-select html-option selecteditemasked 10 years, 1 month ago Diego Filipe Pedro Santos 531 -
2
votes3
answers266
viewsPagination of Text
How to page a text with Jquery ? I have a large text of about 5000 characters and I need to make it stay in some 5 pages with option NEXT PAGE AND PREVIOUS PAGE, I searched and I can not find any…
-
2
votes1
answer675
viewsenable onclick in the Select of a form
I need to do that by clicking on select popup but it is not working, already the input works normally $("#alert_button").click( function() { jAlert('Selecione Primeiro o Estado', 'Classificados…
-
2
votes3
answers1666
viewsHow to view a dropdown menu of a button inside a div with overflow: Hidden?
I have the following problem: by clicking on the dropdown button inside a div with overflow property: Hidden it opens, but gets cropped. Example: HTML <div class="scroll"> <div…
-
2
votes1
answer1871
viewsTabs visibility using bootstrap
In my spring application, I am using the bootstrap in my views to create the user interface. In one of the views, called listagem, i have four tabs, initially only one is visible (the one that gets…
-
2
votes1
answer290
viewsHow to mark next checkbox
From the current checkbox selection, how to mark the next checkbox element and disable all other. I have this code, which when dialing a checkbox consequently all the others are deactivated, but I…
-
2
votes2
answers767
viewsTake data from Forms
How can I get data from all the existing Rms on a page? I have a form with the name "orcamentos" that I can send the fields but I have at least three more that are inserted via include and the…
-
2
votes1
answer979
viewsDiv appears and disappears
I created a div where there are 2 links, when the page is loaded, both links are hidden and when I click "search" they should appear. The detail, problem is that they appear and disappear! Why this…
-
2
votes2
answers1389
viewsadd/remove array to an Hidden input
I am using a jQuery code to add products that are chosen in a select list à a table. Included is the product name and quantity, and finally only the button to remove the product from the table. I…
-
2
votes1
answer274
viewsIs it possible to create HTML frames?
I am on a project, where the front-end layer is totally, TOTALLY separate from the Banck-end. They communicate via ajax via REST. And in this project, I’d like to break the html, so I don’t get…
-
2
votes2
answers797
viewsExtract information from a video at the time of upload
Uploading any video is the easy part, but I would like to explore this moment of uploading more. I would like to extract some information from the video at the time of uploading. This information…
-
2
votes1
answer777
viewsHow to leave a fullscreen div with CSS3 and scrollTo with jQuery
I’m trying to create a responsive website with Twitter Bootstrap and would like to know how I could leave the div so that they stay fullscreen, that is, that it occupies the entire screen and that…
-
2
votes2
answers4163
viewsHow to change between texts according to time?
How do I alternate text with a set time on a div? I don’t know command in jQuery, I tried the code below but it doesn’t work. <!DOCTYPE html> <html> <head> </head>…
-
2
votes1
answer470
viewsListen to multiple events in jQuery
Is there any simplified way to make a selector listen to various types of events? Example: $('meu-seletor').on(['click','touchstart','keyup'],function(){ // minha ação aqui }); Currently the only…
-
2
votes4
answers3211
viewsHow to do strstr() in jquery
Is there any way strstr() (which exists in php) in jQuery? I need to create a Function? I want to be checked if there is the exact string that I am passing in another string, for example:…
jqueryasked 10 years ago noob-rails 127 -
2
votes2
answers746
viewsExcel printing with php and jquery
I am trying to print to excel a query presented in table with php and jquery in tag <tbody>. However it did not work. It presented in excel a wrong result with all the result HTML in a single…
-
2
votes2
answers314
viewsIs it possible to insert jQuery Validate in PHP?
For example, in my php code is like this: if( @$_SERVER['REQUEST_METHOD'] == 'POST' ) { $sobrenome = $_POST['sobrenome']; $erro = ''; if( $nome == 'Qual é o seu sobrenome' ) { $erro .= ''; } elseif…
-
2
votes3
answers7273
viewsLoad image and insert into a DIV
I have the following layout: I would like when I click LOAD, open the explorer for me to choose the image and click next to the image, where there is a DIV, as happens on various websites. Have some…
jqueryasked 10 years ago Felipe Viero Goulart 3,693 -
2
votes3
answers1146
viewsHow to stop running $.map?
How do I stop function execution $.map when a condition of if is true? With for I would wear a break thus: for (int i = 0; i < count; i++){ if (true) break; } And in function $.map jquery, as it…
-
2
votes1
answer3086
viewsFullcalendar fetch data from php database
I’m generating a calendar for a website, and I’m obligated to use the tool fullCalendar. The point is to fetch the events by php from my database. In js, the data is listed in the following…
-
2
votes2
answers11418
viewsHow to open a page in a new tab without leaving the current page
What I want is something that works like target="_blank", but I don’t want to leave the page where the link was clicked. That is, when clicking on the link, apparently nothing would change, keeping…
-
2
votes1
answer236
viewsJsfiddle {"error": "Please use POST request"}
I am testing this code in Jsfiddle and have as answer: {"error": "Please use POST request"} Here is this code DEMO I followed down the code: Html <!DOCTYPE html> <html lang="en">…
-
2
votes2
answers2713
viewsRecover URL variable and pass on in AJAX
I wonder if there is a way after recovering a variable from the URL pass to another page and return the result in a load. I’m using the following script that normally recovers the variable, but does…
-
2
votes3
answers255
viewsInsert input only if it does not yet exist
I am working on a form with dynamically inserted fields. But I want the fields to be inserted only if they don’t exist yet. My html: <!DOCTYPE html> <html lang="pt-br"> <head>…
-
2
votes1
answer2200
viewsCheck if you have any checkbox checked and enable button
How to do in Jquery, a function that checks if there is any checkbox selected, if there is one it enables the delete button, if there is more than 1 it puts the text in the plural. I made the…
-
2
votes1
answer5139
viewsClose internal modal bootstrap without closing external modal
I created a form using the Bootstrap Framework that opens in a Modal and this has a list of data that can be deleted but require a confirmation. It happens that when clicking the "Exit" button or…
-
2
votes3
answers432
viewsConditional for verification
I’m Creating a File js with a jquery. In this file I need to make a conditional or several conditional that check a certain amount of numbers. If the variable x is one of the numbers 1,3,5,6,7,9,10,…
-
2
votes1
answer150
viewsError using Jquery UI and Bootstrap
I’m using Draggable jquery UI What happens is, when I put the element inside Div’s contents, I can’t get it out anymore And just remove the css from Bootstrap it works. Follows the Jsfiddle…
-
2
votes1
answer113
viewsWhy do jquery events not work when creating an object via Javascript innerHTML?
I’m making the following code: var botoesTela = "<button id='okcad' class='botao_padrao botao_ok' value='OK' onclick=''> <img src='/php/Images/OK.png' alt='OK' /> OK </button>";…
-
2
votes2
answers947
viewsUsing Regex to pick up a certain value
I am using this "string?" in regex ^\/(.*)\w+$ It detects values that start like this: /STRINGQUALQUER would like to catch the STRINGQUALQUER, what code do I use? I use jQuery.…
-
2
votes1
answer878
viewsHow to go from one to one element in the Carousel?
I’m using Boostrap with Carousel to pass the menu elements I have. I want four elements presented at a time and that pass one by one without noticing the effect. With the code I have, the effect is…
-
2
votes2
answers1328
viewsExport php data to xls from a link
I’m making a link, that when the user clicks on it should generate an xls file. The link has the data-attributes and must pass these attributes to the.php page and generate the xls. I tried to do…
-
2
votes2
answers1779
viewsHow to add a class to a <li> when the person is on the link page accessed?
I’m creating a website using PHP with includes for better maintenance, but I’m having a problem. If I only used HTML this problem would not be occurring, because as I am using includes for pull up…
-
2
votes1
answer810
viewsValue as Object when selecting item in Select2
The Select2 plugin works normally, the only problem is when I select the item the value put in hidden (mandatory to bring data via AJAX) is as [Object Value] and not the value specified by the…
-
2
votes1
answer48
viewsHow to find the second id of something
How can I get access to second div with id general as I tried in the script? <div id="general">ds</div> <div id="general">ds</div>` alert($("#general").eq(2).html());…
-
2
votes2
answers3265
views -
2
votes1
answer854
viewsscrollTop does not work
I have a div topoMaior and I want that when the person gives scroll of some 50px, it stays with top:0. I did it with Jquery: if ($(window).scrollTop() > 50){ $(".topoMaior").css("top","0"); } And…
jqueryasked 9 years, 11 months ago Felipe Viero Goulart 3,693 -
2
votes1
answer884
viewsWhat to do to make this code work on mobile
I took this code ready to mount a fake menu off-canvas, it is working perfectly, but when I access by mobile the menu does not appear, what I need to do? $(".toggle-canvas").click(function () {…
-
2
votes1
answer417
viewshow to prevent an element from being reloaded when accessing other pages of the same site?
How to keep an element fixed and without being changed even changing page, on a website. Like a music player, like websites http://letras.mus.br/ http://palcomp3.com/ but not with ajax, if at all…
-
2
votes1
answer655
viewsHow to generate data for Graphics
I am making a page that will have several types of graphics... But my base is coming by jQuery, Example: var wo = new Array(); var listItemEnumerator = this.customlist.getEnumerator(); while (…
-
2
votes1
answer153
viewsHow to discover the actions an element has when clicked?
I wonder if there is a way to create a script that shows me the actions of a certain element when clicked, or if you want to debug it in the Chrome console, for example. Something that would tell me…
-
2
votes1
answer1709
viewsFunction not defined with javascript
I made a cshtml and in it there is a button that calls my function that inserts in the BD. It turns out that when I click the button, it gives me this error: Uncaught Referenceerror: Insert…
-
2
votes1
answer114
viewsHow to register new in autocomplete
I don’t know if this is the right place to ask, but I always see the following component in some systems: I would like to know, which plugin is this? If it is just jquery ui autocomplete, how is…
-
2
votes2
answers560
viewsLimit the amount of results that appear in the jquery-Iu autocomplete
I’m using the jquery-Iu Autocomplete and everything is working perfectly. However I would like to improve the script at one point. I would like to limit the results. Because if I type To no input,…
-
2
votes1
answer1911
viewsJquery Navbar Fixed after scrolling
I’m wearing bootstrap and have a common navbar: <div class="navbar navbar-fixed-top"> <div class="container"> <button type="button" class="navbar-toggle navbar-default"…
jqueryasked 10 years, 3 months ago Rafael Barbosa 2,855 -
2
votes1
answer73
viewsHow to call a function after a slide effect?
I need to take the height of a div and redeem an ifram according to the current height, so far so good. Only I’m getting the height right after a click that gives a slideToggle in this div. And it…
-
2
votes3
answers129
viewsSimplify mouseenter and mouseleave of multiple images
I have a top menu made by images and would like when mouse all other images except the selected decrease the opacity. Only that my code gets too big, I wish I could decrease to facilitate reading…