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
-
5
votes3
answers1322
viewsGet the value of the "option" that was clicked either to select/deselect
I have the following <select>: <select id="multiselect" multiple="multiple"> <option value="pedra">Pedra</option> <option value="papel">Papel</option> <option…
-
5
votes5
answers727
viewsReturn all CSS classes with Regular Expression
I need to return all the classes found within a CSS string, so that when the expression conflicts with: div.classe1{/*...*/} .classe2 div a{/*...*/} .classe3.classe4{/*...*/} .classe5{/*...*/}…
-
5
votes2
answers2746
viewsHow to make the jQuery toggle function in pure javascript?
I found out a little while ago and found very interesting toggle function using functions: $('body').toggle( function(){ alert('A') }, function(){ alert('B') } ); (In the example I put only 2…
-
5
votes4
answers1363
viewsHow to change an element within a Less file?
@fundo:#fff; //como alterar isso, externamente com javascript @texto:rgb(94, 135, 176); //preciso mudar essa propriedade dinamicamente. .wrapper{ …
-
5
votes2
answers1856
viewsHow to select/deselect an input select Multiple at each mouse click? (without Ctrl)
I’m trying to make a script to select several options of a <select multiple> every mouse click. So far so good, I got and follows the code: var numSelected = 0; var valSelectedArray = [];…
-
5
votes1
answer1179
viewsRecognize Aria-Selected="false" with jQuery
How do I make a jQuery that recognizes if aria-selected="false" and if true change the background of the div "arrow-btn-sub" to another image (arrow img). This is part of an acordion and I want to…
-
5
votes2
answers903
viewsIs it possible to upload files without using php, just with jquery?
I’ve searched a lot of sites but I’ve never been able to figure out if it’s even possible, someone can help me?
-
5
votes1
answer316
viewsHow to change the position of Ticks elements in Jqplot?
I need to know how to change the position of the Ticks (Graph Entities) so that they are diagonal instead of vertical, because as shown in the attached image, the names overwrite each other when…
-
5
votes1
answer372
viewsHow to resize thumbnails generated by Uploadfy? ASP.NET c# MVC 4
Hello, I would like to know how to resize the thumbnails generated by jQuery Uploadfy plugins. As shown in the print below, it generates the thumbnails according to the actual size of the images, it…
-
5
votes2
answers1050
viewsEvent that identifies when the browser is resized.
Is there any event javascript that identifies when the browser resizes the page? I’m having problems with resizing the page with a window FancyBox, which loses its dynamic changes and returns the…
-
5
votes1
answer190
views -
5
votes2
answers42594
viewsHow to open and close modals with jQuery
I’m trying to open a modal, wait 3 seconds and close it inside the $( document ).ready(). When I use $('#myModal').modal('show'); the modal appears but when I do…
-
5
votes1
answer4759
viewsChange class when resizing screen
I want to change classes as the screen is resized, the code I’m using only works if I refresh the page, I’d like to make the class change without having to refresh the page. Code:…
-
5
votes1
answer7812
viewsSort table column datatable through query
I am trying to sort my table by the name field of my database table, but the jquery (datatable) plugin insists on sorting by id (first table field) How to force sorting through the query result, in…
-
5
votes2
answers1901
viewsEvent click Jquery in selector . class
I created several div by using jQuery to assign them the CSS class numero: for(...) textoHTML += "<div class='numero par'>"+sorteado+"</div> <!-- numero par-->\n"; ... textoHTML +=…
-
5
votes5
answers6692
viewsHow to make the textarea automatically increase height to a certain limit?
I would like to know the best way to get the textarea automatically increase height to the limit of 500px when the user enters content. Do not use another library other than Jquery. CSS: textearea{…
-
5
votes2
answers2231
viewsShow image and upload an input
Hi, I would like to know how to get the path of an image contained in the value of a file type input. I am using the following code: $(document).on("change",'#Upload',function(){ var…
-
5
votes2
answers331
viewsHow to order animations with jQuery?
I have this code and I wanted to order the animations so that the header only begins after the .logo_1 end. I tried to use Duration but it didn’t work out very well, there is some other way for me…
-
5
votes1
answer1015
viewsScrolling Effect with Parallax Using Video
I’m studying effects with Parallax and I’m trying to display a video in the background instead of an image. So I was able to create a good effect using image as background. Here is my code jQuery:…
-
5
votes1
answer1506
viewsDisable keyboard in some fields
I need to make the letter f only work in text fields, in other places it does not work, example: $(document).keyup(function(e) { if (e.keyCode == 37) { return false; } });…
-
5
votes1
answer436
viewsProblem with ajax loading with Cakephp 2.x
My pages are uploaded via ajax and uploaded within div content. Where I take the url by the onclick event from the link, and then upload it. Calls made directly from the menu work normally, but when…
-
5
votes3
answers16413
viewsRun function after some time
Hello, I have the following code (just studying): $('#test').hover(function(){ $('.box-one, .box-two, .box-three').hide();…
-
5
votes2
answers937
viewsHow to animate the layout of Divs and caption, when doing Hover in one of these elements?
I’m creating a website, I’ve been asked to play a prank on the team. According to this image, when :Hover in one of the parts, all the text and image are ordered: I don’t know how to take this boot…
-
5
votes1
answer5119
viewsTransition effect on jQuery
I’m starting in jQuery and I have a question: is there any way to let the change down with a kind of transition? <html> <script type="text/javascript"…
-
5
votes2
answers2037
viewsHow to set print options via javascript?
Is it possible? I would like for example to remove the default margin and remove header and footer. Already open the print window with these settings.
-
5
votes2
answers1035
viewsCrop image with JS
Can you use the JCrop or some other library to crop image, but I set a default size? That can just move the square over the image? I tried to use the JCrop but the user is the one who defines the…
-
5
votes2
answers692
viewsjQuery - Switching background-image of an element
I have a figure element with a series of images inside: <figure class="MiniModImgSlider"> <img src="img01.jpg" alt="img01"> <img src="img02.jpg" alt="img02"> <img…
-
5
votes1
answer1157
viewsIn a checkbox list, know which ones are checked
In my application I am printing a list of data coming database, and in each item of the list I am placing a checkbox, as shown in the following picture: Now by clicking "Start copy" I want to select…
-
5
votes1
answer13641
viewsHow to insert word break into textarea in text inserted via jquery/javascript?
I have a textarea and would like to list some items in it one on each line. I am already inserting the text normally in the textarea and separating the items in commas currently: nomUgs =…
-
5
votes1
answer166
viewsProblems with mouseenter() and mouseleave()
When I hover the mouse on the first link with the show_post class it displays the correct div it has to display, but when I hover the mouse on the second link the script opens the 2 Divs and not…
-
5
votes2
answers84
viewsImplement this
There are several Ivs with the class .categorias and I need to display the element .nav-a only in the div category that I have the mouse on top of it at the moment. What is currently happening is…
-
5
votes1
answer6160
viewsCapture data from Facebook users
I am trying to collect with JAVASCRIPT/JQUERY some data from specific users that are not part of my friends list. I’d like to capture dice as: likes, friends, posts and groups. I did some tests and…
-
5
votes1
answer2122
viewsCapture actions: Scroll Down and Scroll Up
Is there any way in jQuery to capture the events of "Scrolldown" and "Scrollup"? I tried this way: var lastScrollTop = 0; $(window).scroll(function(event){ var st = $(this).scrollTop(); if (st >…
-
5
votes3
answers1664
viewsHow to create a plugin for jQuery’s $() function
I noticed that you can create plugins in various jQuery functions like AJAX, CSS (using the cssHooks), animate, create new functions, among others. But I wondered if it is possible to create a…
-
5
votes1
answer73
viewsIs there any difference between an event with passing parameters to one without passing?
Considering: jQuery $("#seletor1").on("click", function(){ $("#seletor2").trigger("click", {dados: "informação"}); }); $("#seletor2").on("click", function(){ //faça coisas });…
-
5
votes1
answer772
viewsWhat does the crossDomain:false parameter in Ajax mean?
I’m implementing an image upload web application on Ajax and there is the parameter crossDomain:false in an example finding. What is the function of this parameter?
-
5
votes2
answers8876
viewsAccents and Special Characters in Ajax jQuery
I have a query that is made with Ajax request via jQuery. In the fields when I type a character like "ç" and send the request to the server, it is arriving with the character in another format. Ex:…
-
5
votes2
answers672
viewsEvent fires second only, after sequence of user actions
I have a form where there’s a table. At the bottom of this, there are buttons to manipulate the table rows, and only the selected ones will be affected. Steps to play problem jsfiddle to check the…
-
5
votes2
answers12256
viewsModal within a modal
I have a modal that opens on another modal, as I would not allow this modal that is open on the other modal not to close when I click off it. Note: I am using bootstrap, I tried using…
-
5
votes4
answers3838
viewsHow to run a PHP function in the background?
I’m using the cPanel API to add dynamically parked domains. So far so good, send the required data via jQuery.post() only that this process takes a little to be completed, about 1 minute. Have some…
-
5
votes2
answers4079
viewsPicking up content from div with equal classes
How do I get the content inside p? I got it, but it’s listing all the contents and not just what’s clicked. And another question, how do I call a function in the onclick when she’s inside of…
jqueryasked 10 years, 2 months ago Altemberg Andrade 633 -
5
votes1
answer733
viewsHow to send and process N separate forms with ajax without refreshing the page?
How to do when you have N forms with same ID, or CLASS send the data (Submit) process and when finished processing change the color of the <'tr bgcolor="#FFFF00"'> for green '#00FF00'…
-
5
votes1
answer147
viewsHow ajax does to identify classes
I have the following application: function atualizarPrdutos(categoria){ $.ajax({ type: "POST", url: "teste.aspx/InsertData", data: JSON.stringify({categoria:categoria }), contentType:…
-
5
votes1
answer210
viewsUpdate BD table by clicking a <li> element
I’m developing a mobile application using jqMobile and Ruby. How to update a database table by clicking on an item in a list. My list is generated like this: <ul data-role="listview"…
-
5
votes3
answers1523
viewsHow to access one selector within another in jquery?
I am trying to access the div’s of the '.contentParagraph' class specific to each of the div’s '.content', so that the events of one div do not interfere with the event of the other, follows the…
-
5
votes5
answers1182
viewsHTML element does not become visible
I have the following HTML: <form action="cadastro/cadastrando.php" method="post"> <div class="elemf"> <label>Nome</label> <input id="nome" type="text" name="nome"…
-
5
votes1
answer1636
viewsSend files and inputs with the same Ajax request
I have a code that works perfectly for sending files without refresh using PHP and jQuery and I have another code that works without refresh also but for inserting the data in DB. I can’t put the…
-
5
votes2
answers1306
viewsJquery Mask in dynamically created fields
I have a product values registration page, where I have an input field with value mask in R$. But since this field is created dynamically after a search in the comic book, the mask then works only…
-
5
votes2
answers356
viewsIs it possible to apply push technology?
I have a system, in which it displays database files, in list form. I do the query in the database every 5 seconds to see if there are new files, and if you have it is shown to the user using AJAX.…
-
5
votes1
answer5160
viewsPin a footer element to the footer
I am doing a job for the college where we were instructed to take advantage of the new semantic tags of HTML5 (Nav, Section, footer, etc). I’m having trouble fixing the footer at the bottom of the…