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
answer377
viewsCharacter counter of an h
I would like to know how many characters it contains within this H2, which in this case ex: <h2 class="h2">Ola Mundo</h2> contains 9 characters.
jqueryasked 8 years, 5 months ago João Filipe 15 -
1
votes1
answer225
viewsscroll with position:Fixed losing the right margin
When I scroll down, the div#chat, is fixed everything straight. However the problem is that the layout breaks losing the right margin. How can I solve this problem? $(document).ready(function() {…
-
1
votes0
answers1342
viewsGet Date Attribute in DIV
In certain div I do an area calculation for a responsive website. <div id="iframe-game" class="help" data-scale="0.8264794383149449"> </div> By jQuery I try to get the value of the…
jqueryasked 9 years, 4 months ago Diego Souza 16,524 -
1
votes2
answers447
viewsI cannot read the json PHP-encoded array
I’m not getting in jQuery Ajax to read this array encoded with PHP: [{"voo_Cod":"1","voo_CidadeOrigem":"1","voo_CidadeDestino":"2","voo_Data":"2015-07-13 07:00:00","voo_Preco":"200"}] My code in…
-
1
votes1
answer139
viewsOnclick does not work on Firefox and IE
This function does not work in firefox and IE: In javascript: function scrollTo() { var _offset = 90; $('html, body').animate({ scrollTop: $('#videoItem').offset().top - _offset }, 'slow'); return…
-
1
votes1
answer576
viewsMethod . jQuery clone()
I need it every time I click the div Mais, clone the full content of it and put it right below. However it’s not working, could you tell me what I’m missing ? $(document).ready(function () {…
-
1
votes2
answers7365
viewsHow to know which version of the browser dynamically?
I’m doing a project in CORDOVA using basically HTML, CSS, JS. But in some mobile phones the image of some icons are getting their natural size and in others not, I have used basically vh to set the…
-
1
votes1
answer703
viewsChange the size of the button
I’m developing a footer in Jquery that I passed to this FIDDLE HTML/Jquery <div data-role="footer" data-position="fixed" data-theme="c" data-tap-toogle="false"> <div data-role="navbar"…
-
1
votes1
answer121
viewsReceive HTML Table in Controller (Springmvc)
Good morning, I have a page where the digital user 3 information. <input type="text" id="info01"> <input type="text" id="info01"> <input type="text" id="info01"> When typing the 3,…
-
1
votes2
answers108
viewsClick Subitem menu brings up level id
I’m making a menu where when I click on it I send a code to a page, this page it redirects to the page that was set with that id. Up to this point it’s working only when I click on the submenu, it…
-
1
votes4
answers646
viewsPerform function by clicking except on specific item with jQuery
I have the following code: $(".teste").click(function() { return false; }); Inside that div .teste I have links with the class .link and I want, when clicking on the div, the return false, but that…
-
1
votes1
answer135
viewsOverride CSS from ui-disable class
I have a navbar as footer. The first element of navbar has the class ui-disabled not be possible to interact with it. Here is the FIDDLE HTML/Jquery <div data-role="footer" data-position="fixed"…
-
1
votes1
answer169
viewsFunction does not run without setTimeout
I’m having a problem executing a function by clicking on icheck. In case, the function is only called if I give a setTimeout 1 millisecond, less than that or without timeout the function is not…
-
1
votes2
answers553
viewsDiv or image appears only inside another
I would like to put a div or an image ( preferably div, if possible ) inside another, for example, I wish Div didn’t appear outside the other, if I’m overtaking being behind. In the example below,…
-
1
votes1
answer487
viewsAnchor link with js and bootstrap, how to close the menu after clicking?
I’m making a site using boostrap, it’s a single page. When I access by cell phone and click on some link from the menu of the page it makes the scrolling effect to where the anchor is, but the menu…
-
1
votes2
answers1348
viewsCreate an image with dynamic text overlay and send by email
I needed to create a system that allows me to have 2 or 3 images to choose and in these images it is possible to insert a text written by the user and that can be sent by email with the image in the…
php jquery wordpress jquery-plugins wordpress-pluginasked 8 years, 4 months ago Laranja Mecânica 499 -
1
votes0
answers490
viewsGoogle Maps and Jquery problems
I’m setting up a site with jQuery UI and google maps. My map div is inside another Jquery div (tab). I don’t know if there is a conflict between jquery-ui and google maps, because it doesn’t only…
-
1
votes1
answer2996
viewsGrab Content from another page with jquery
I want to create a way to open this page of Sptrans in an app, but without loading all their layout, only the fields: LOGIN, PASSWORD and REGISTER, using only HTML and JQUERY. The elements I need…
-
1
votes2
answers275
viewsSeparate json response for tags
Guys, I have the following ajax call: $(".sec-tags").html(res.data.tags); It is returning the server call, however the call is coming as follows: tags: "coelho,teste,gato" Everything is coming…
-
1
votes1
answer138
viewsNext Back content on page
In this table there are the rounds, where it appears all, wanted a forward and back button and the guy could see the next rounds, without having to scroll the whole screen, wanted that appeared only…
-
1
votes2
answers2375
viewsPass form values to Ajax
How do I pass form values to PHP with Ajax? JS (without passing values) $(function() { if ($('#javascript-ajax-button').length !== 0) { $('#javascript-ajax-button').on('click', function(){…
-
1
votes3
answers638
viewsHow to open a new page by clicking on the table row?
I created a page that displays database data in a table, generated through the plugin dataTables (Jquery). It works as follows: when the user clicks on the table row, it is redirected to an edit…
-
1
votes1
answer689
viewsCarousel with wordpress loop in columns
Hello, I’m trying to adjust my Carousel so that it has a grid done by loop, I have the following wordpress code: <?php global $posts; $b = 0; $args = array( 'post_type' => 'banner',…
-
1
votes2
answers4318
viewsChange color CSS
Good afternoon, I’m with a doubt as I can do to change the color of a div by passing the mouse on another for example: I have two div with the name of the first div of 1 and the second div with the…
-
1
votes2
answers4175
viewsBy clicking the site menu, move the scroll bar to a specific point slowly
I would like to move the scroll bar to a specific point of the page by clicking on the site menu. I managed to do with anchors. jQuery(document).ready(function($) {…
-
1
votes1
answer430
viewsBy clicking (entering) on a page move the scroll bar automatically to a specific element without clicking anything
I was able to do it by clicking on some link etc, but I would like when entering a page the vertical scroll bar of the browser to descend to a specific element, without having to click on anything.…
-
1
votes1
answer48
viewsEvent handler for td?
Guys, first a good day. Well, I wonder if it is possible to create a handler in case a -td- is modified. Example. I have the following code: <table> <tr> <td>Olá</td>…
jqueryasked 8 years, 4 months ago Isaque de Souza 41 -
1
votes2
answers543
viewsVideo Jquery Exchange
I can’t do that after clicking the button, change the video I wanted the video to change at the top, but appears 2 after clicking the button... function setvideo(src) {…
-
1
votes1
answer856
viewsJquery video final event
Good morning, I have a problem, I wanted to display a modal at the end of each video, in the first video it worked right, but in the second I’m not getting... Follows code below... If anyone can…
-
1
votes1
answer538
views"Uncaught Syntaxerror: Unexpected token :" error when trying to bring data in JSON format from another URL
I’m trying to pull data from a URL returning JSON to use on my page. Apparently I am able to bring the data, but for some reason I get the following error in the browser console: "Uncaught…
-
1
votes0
answers51
viewsSites that work by scroll
I have seen sites that work by scroll, where it is not possible to resize it, IE, when you try to resize the page with the Ctrl + scroll does not work and the whole site is animated by scroll too,…
-
1
votes1
answer91
viewsJquery - Each with multiple arrays
I need to make a each with several items, example: How can I do that? The "item" already generates the result of the "data.id_site" array but I need a new array together, the "item2" that generates…
-
1
votes1
answer160
viewsJquery - append in prepend generated element in each
How do I add elements to an element that has been added inside a each ? Following example: $.each(data.id, function(i, item) { $( ".lado" ).prepend("<div id='tes'>" + data.id +…
-
1
votes1
answer28
viewsAnimation "speed up" - js
hello I would like to know how I do in js or if you have any plugin that facilitates those animations of single pages. You click on the menu and it goes down to the section you selected, I can make…
-
1
votes1
answer2709
viewsForm inside an html form
A doubt that may be simple, but I had no choice: I have a main HTML form, which captures all the data of a table, the problem is that there is the upload of images inside this form, and this upload…
-
1
votes1
answer66
viewsProblem with function return
Guys, I have a json code that searches for logged user information, and later, I have another code that searches all sectors registered in the system. The function normally returns the information,…
-
1
votes2
answers239
viewsClick and add id to the array. If you click again, remove this id
I have a problem, I have a list and when the user clicks it adds the id of this <li> in an array, but I want when it click again on that <li>, this id is removed from id. Here it is in…
-
1
votes0
answers20
viewsMaking Crape on Instagram
I would like to know if it is possible to "catch" the links of all the photos of an instragram profile without using the Api? With the code below I can only get the 20 most recent photos.…
-
1
votes1
answer102
viewsCount back
Good morning gentlemen, I need to count elements of a li and add these values dynamically by counting the previous li elements: <div class="conteudo"> <ul> <li><i…
-
1
votes1
answer196
viewsHow to control the positioning of a div with position Fixed?
How can I make sure that when my right div gets to the div of the comment area it gets fixed again? When it arrives at a number X distance from the top I apply a position Fixed to it to keep track…
-
1
votes1
answer871
viewsDownload XML by browser, without opening the file
I need the system to download an XML file, release the file itself, without opening it in the browser, has as?
-
1
votes0
answers37
viewsSp Services does not work, displays nothing
I created the Following SP Services code but it does not display anything on the screen of the Sharepoint page, the code is: < style > /*---- CROSS BROWSER DROPDOWN MENU ----*/ ul# nav {…
-
1
votes1
answer209
viewsClick on page area and close MENU
I’m trying to make this script that closes the MENU when I click on any area of main. The MENU opens the left of the mobile page. But as you can see MENU is out of the main. So I couldn’t make that…
jqueryasked 9 years, 4 months ago Diego Souza 16,524 -
1
votes1
answer74
viewsHow to slideup/slidedown without a click event?
Hello, I’m starting at Angularjs and I’m having some doubts... One of them is this. I have the following code: angular.module('ValueSelling.controllers', []).controller('startController',…
-
1
votes2
answers1158
viewsTake data from the button in jQuery and call Modal
I have the following button: <button type="button" class="btn btn-danger btn-custom" name="deletar" id="<? echo $valor->set_cod; ?>"><i class="fa…
jqueryasked 8 years, 3 months ago Sr. André Baill 6,946 -
1
votes1
answer185
viewsAutocomplete Rails 4 + jQuery
Good afternoon, you guys! I have the following scenario below: a model city where all the cities in Brazil are already registered, and I have a view Companies where I will register the companies and…
-
1
votes1
answer135
viewsfilter jQuery.getJSON results
I’m making a jQuery.getJSON at the url http://api.vagalume.com.br/search.php And should JSON return: {"type":"notfound"} or {"type":"song_notfound","art":{"id":"3ade68b7ga05f0ea3","name":"William…
-
1
votes1
answer3169
viewsHow do I connect to the database via [Wordpress] to query?
Well, I have a call jQuery Ajax in the header.php of my theme that is entering a file PHP at the root of my Wordpress and return me the echo test. I need this file to query the banco de dados and…
-
1
votes1
answer315
viewsSelected html filter single fields
I have the following Selected, how do I make it Filtre the single fields for example it is repeating the same option <option value='967'>GOIANIA - GO</option> several times I want it to…
-
1
votes0
answers155
viewsrequireJS and Jquery causing dependency problems
I’m trying to apply requireJS to my application, because I’m having some problems. require-config.js var require = { paths: { "jquery": "/admin/admin-v2/bower_components/jquery/dist/jquery.min",…