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
answer558
viewsCalculation of cubage with jquery
Need to calculate width * height * length * quantity. The Script is calculating only from fields that initial, those that are added according to need are not included in the calculation. The first…
-
1
votes2
answers45
viewsHide a certain amount of items
Supposing I was 10 div class="code" in my document! How do I add a button, so that when loading the page only 5 of these items is shown, and the other 5 are hidden, and after clicking the button…
jqueryasked 8 years, 9 months ago ivan veloso 2,900 -
1
votes1
answer62
viewsHow do you make a spine stick when it reaches the extremities?
In a two-column layout, if the first is larger than the second (height), there will be a blank space in place of the second when we scroll the page to a certain point. I want when I get to the end…
-
1
votes3
answers149
viewsHow to delete a DIV if there is a word in another DIV in jQuery?
I’m trying to make the following condition: $(document).ready(function() { if($("#content .productName").html().indexOf("JBL","Oversound")==-1) { $("#pague-so").hide();} }); In this case, I want the…
-
1
votes2
answers5211
viewsDelete tr table html jquery
Guys, I created a routine that adds a tr to an existing table, and I’m trying to create a boot to remove this tr, but I haven’t been able to. I used the following code to add to tr, this works…
-
1
votes2
answers113
viewsCalculation of toll per kilogram
Hello, I need to do a toll calculation based on the kilogram. Each 100kg the toll value should be added Ex: 50kg = 6.42 100kg = 6.42 101kg = 12.84 200kg = 12.84 299kg = 12.84 300kg = 19.26 ...…
-
1
votes1
answer1463
viewsHow to convert an html page to Image and download IE and Safari?
I need to convert an HTML page into an image and download that image. I got it for Chrome and Firefox, but in IE it doesn’t work at all in any of the versions. In Safari 5 I could not download, when…
-
1
votes2
answers8101
viewsmask accepting numbers and , with jQuery Mask Plugin
People wanted to know how to create a mask in jQuery Mask Plugin so that the input accepts only numbers and comma. To accept only number I’m doing so: $('#valor').mask('#', { reverse: true });…
-
1
votes2
answers283
viewsScroll of window size
Hello. Well, I’m new to the community so excuse me if something I write is not very clear. I would like to know how I do to give a scroll the size of the browser screen, I want to divide the site in…
-
1
votes1
answer1106
viewsSend form data to a modal window
I am developing a simple form and when submitting the form, instead of sending to another "result.php" page, I would like to open a modal window using bootstrap, to show the summary of this post and…
-
1
votes0
answers427
viewsRequest on Postman (Chrome extension) works, but with ajax no
I am making a request to a private API via POST. First I did the tests via Postman extension, everything went well. Without following I did tests with the request via ajax and it does not work the…
-
1
votes0
answers129
viewsZoom tweezers with photoswipe
Hello, I’m using a template I bought on a website but I’m having difficulties to implement Pinch Zoom on it... Basically it is the following: I have a gallery <ul class="gallery" id="Gallery">…
-
1
votes2
answers1435
viewsHow to count the number of lines within a div that does not have a "line limiter"?
How can I count the number of lines in a div who does not own a \n or a <br> at the end of each line? Exemplifying: var el = document.getElementById('theDiv'); lines = el.innerHTML.replace(/…
-
1
votes1
answer1096
viewsLoad combobox with $.getJSON data
I’m doing a method that goes in the comic book makes a query and returns the codes. With these codes I charge to Combobox with the respective items. There are times that fill in neat, there are…
-
1
votes3
answers1809
viewsAssign received value via ajax to a variable
I have the following function: var idArtigo = $(".codigo", this).text(); myJSRoutes.controllers.ArtigoDocumentoController.getArtigoByDebitoTipo(parseInt(idArtigo)).ajax({ success: function (data) {…
-
1
votes1
answer670
viewsRepeat query with javascript
I am needing to update a div constantly and however this code below only updates once, I would like instructions on how to update it always at a certain time so that the same action is repeated…
-
1
votes0
answers24
viewsHow to use the jquery-panelsnap() onSnapFinish(); event
I have a question in jquery-panelsnap plugin (http://guidobouman.github.io/jquery-panelsnap/) this is a plugin that works with session transition from scroll. It works very well, but instead of…
-
1
votes1
answer901
viewsFocus on a browser tab with Javascript
With Javascript, you can focus on a specific browser tab, assuming I know which tab? If so, how?
-
1
votes2
answers102
viewsPosition all selects at index 0 with Jquery
Good morning! I have a question, and I was wondering if anyone could help me. I have two selects on my page. I have a button to register a new record and another button to edit each record. When I…
-
1
votes1
answer414
viewsHow to use a global variable counter?
Click to test! My goal is that the Count variable gets the value that will accumulate in the arrayVec1 function, but instead I always get the result 0. Can someone tell me how I can pass the value…
-
1
votes0
answers80
viewsWhat is causing this error? jquery.php? version=1.3.2&gzip=0&farfuture=0:1
I’m having trouble identifying this error that appears on one of the pages of a website: Uncaught Syntaxerror: Unexpected Identifier jquery.php? version=1.3.2&gzip=0&farfuture=0:1 I’ve done…
-
1
votes2
answers145
viewsFetch array position from a given term without using the 'inArray' function
In a certain method, from my input, when typing "me" it checks if the fruit exists in this array: ['banana', 'melao', 'uva', 'melancia'] In case, brings me (position 1 - melao and position 3 -…
-
1
votes0
answers342
viewsHow to put Modal window with gif in the form?
I have a form that I programmed using Phpmailer and I would like that when the user fills the fields and clicks to send, instead of redirecting to another thank you page I wanted to be displayed a…
-
1
votes0
answers88
viewsClarification on jQuery ajax content-type
What would be the difference/utility to use: beforeSend: function(jqXHR) { jqXHR.overrideMimeType('text/plain; charset=iso-8859-1') } and contentType: 'text/plain; charset=iso-8859-1', contenttype…
-
1
votes1
answer194
viewsHow to access the elements inside a dynamic element with jquery
Good afternoon. I have a question. I used the load (jquery) command to load a page, and within it there is a form. When this form is processed, it should change the div that is in the same load…
jqueryasked 8 years, 8 months ago Fabiano Carboni 11 -
1
votes1
answer46
viewsCategory-separated Jquery Slideshow
I need an idea of how to make a separate slideshow by category, I want to show the user a link to a particular category, by clicking on the link to show a slideshow from this category, if you click…
-
1
votes2
answers1948
viewsHTML Audio - How to automatically go to the next song in a jQuery playlist
I’m creating a playlist with HTML5 and jQuery. My appointment: <ol class="playlist"> <li> audio 1 <audio class="track" preload="none"> <source src="<?php echo $siteroot;…
-
1
votes0
answers133
viewsError setting Jquery Fullcalendar property when user changes date
I need to change the property minTime of vision agendaDay of FullCalendar dynamically, as the user changes the date. I’ve tried the following: dayRender: function(event, element, view) {…
-
1
votes2
answers154
viewsHow to recover the option on click and select the item that is in its value?
<div class="escolher_temas"> <form action="iframe.php" method="GET"> <select name="escolhe_tema"> <option value="http://z05.axitech.com.br">Tema 1</option> <option…
-
1
votes2
answers60
viewsDatepicker not render next months?
We have this example: http://jsfiddle.net/3eBLH/. When I click on the month of May, it renders the next 2 months. There’s a way to disable it?…
-
1
votes2
answers2331
viewsSave to database using jquery
I need to take the data typed in my modal window and set it in the database. Below follows the pages. listarUsuario.php <div class = "conteudo"> <div class="container-fluid"> <div…
-
1
votes2
answers5377
viewsCompare "input" element values with javascript or jQuery
Guys, I tried to make this fiddle to understand how to compare conditions of elements with javascript, but I don’t know what went wrong. var username = "admin"; var password = "admin"; function…
jqueryasked 9 years, 5 months ago Israel Sousa 1,362 -
1
votes2
answers65
viewsDoubt about ajax
My question is whether this code of mine is correct. $(document).ready(function(){ $("#fechar").click(function(e){ e.preventDefault(); String lista_Cont = $(this).attr('<?php include…
-
1
votes5
answers4348
viewsHow to access the value of an array through the key?
I have the following array: var arr = [ {'David': '1'}, {'Camilla': '2'}, {'Sadat': '3'}, {'Vanuza': '4'}, {'Diego': '5'} ]; I wanted to access the "Camilla" value of the array I created. Ps: I want…
-
1
votes0
answers29
viewsSlideshow or player with MP4 and JPEG
I have several files, some mp4 other jpeg and I need a playlist or a slide that goes through these files being that they stay in a 'x' time on the images and when they arrive in the videos they run…
-
1
votes1
answer284
viewsFade transition between sessions of a site with different content
Hello, I need to make a transition effect of how this site: http://brewlife.com/ With the scrolling the content of a session fades away and a new content appears, from the next session, overlapping…
-
1
votes0
answers49
viewsHow to create a preview multiple images via "Multiple input" html?
I found this code on the net, it works well. But, how can I adapt it, to receive several images? <input type="file" accept="image/*" onchange="loadFile(event)"><img width="100px"…
-
1
votes1
answer1012
viewsElement with onClick and onDblClick
I have a list and on that list I’m trying to distinguish one click of a double click I initially used in the HTML: <a class = "alinhar1" href="#" ondblclick="list.oneDblClick();"…
-
1
votes1
answer287
viewsHow to know when Collapsible expands or closes?
I have a Collapsible, and when it is expanded I want to add elements to it, and when it is collected I want to exclude the elements. At the moment I’m using it as follows: <div id="expansorTurma"…
-
1
votes2
answers7587
viewsHow to resolve html elmento value quotes with javascript?
I have a script that creates buttons with onclick events, but I’m having trouble assigning its value. View the script: for (var i = 0; i < cursos.length; i++) { $("#cursos").append("<button…
-
1
votes1
answer43
viewsAdd multiple lines with jQuery using . text
I am doing the project for the school, I am in the chat part and I have a question. In the part of sending messages in jQuery: socket.on('newMessage', function(data){ $chat.append(data.nick+' - ' +…
-
1
votes2
answers356
viewsMake a Jquery script to run only on mobile phones
I can’t post the code now, so I’ll be as clear as I can. I’m making a website on that standard single page, where every session of the site has the exact screen size. This is done via Jquery(that…
-
1
votes1
answer405
viewsI can’t get jQuery Vegas plugin to work
I’m trying to try a plugin jQuery called vegas to make a background fullscreen but not working, I did according to what is on the site, imported all libraries, the jQuery and the archives .css of…
-
1
votes1
answer490
viewsHow do I make it when the music starts to rotate an image?
How do I when the music starts to rotate an image? javascript or php <script type="text/javascript"> rodarImagem( function adicionaClassERoda() { document.getElementById('pic').className =…
-
1
votes1
answer1118
viewsHow to pass a php array as a $.ajax data parameter?
How to pass a php array as a $.ajax data parameter? Ex: <?php $nomes = array('maria','joao','jose'); ?> $.ajax({ url: 'pagina.php', dataType: 'json', method: 'POST', data: {'nomes' : <?php…
-
1
votes3
answers436
viewsAssign dynamic value to a variable in Jquery
I searched hard and I couldn’t find the answer. I need to assign a value to a variable in Jquery, I don’t have much knowledge. What I need is: By clicking on a link: <a href="?sts=Pendente"…
-
1
votes1
answer77
viewsHow to perform a 250px horizontal slider per click?
Good morning guys, I used the instagram API to show my profile photos on the website and could not find any solution Carousel that didn’t conflict with Magento’s jQuery, so I started making the hand…
-
1
votes1
answer593
viewsChanging the css of a div with Jquery mouseover
I need that if the mouse is not on top of a div, after 4 seconds it disappears, changing the css. How to do this with Javascript/Jquery?
-
1
votes1
answer48
viewsEmail appraisal
I have a problem analyzing the email on form registration, what I would like to do is that as soon as the user insert his email in the field email, the site already evaluate the email in the…
-
1
votes2
answers1018
viewsMy js file is not loading
Studying Ajax with Jquery, in Mauricio Samy Silva’s book is not working with me. I made a js file out and now I can’t load it. What I did I think is not wrong. I debugged the browser with F12 and I…