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
answers456
viewsCount words in Array
How do I count the amount of words that appear within an array. Example: ['thiago','carlos','pereira','thiago'] "Thiago" appeared 2 times, "carlos" 1 and "pereira" 1. I want a logic that does it…
-
2
votes1
answer685
viewsLoad datepicker into modal
Good morning. I’m not able to load the datepicker inside a modal called via ajax, someone would have an example of code? MODAL: <div class="modal fade" id="modalaltera" tabindex="-1"…
-
2
votes2
answers167
viewsHow to add a DIV to each 3 paragraphs (<p>)
Well what I want is simple. I need to add one div every 3 paragraphs. Remembering that these paragraphs will be in another div (in case it would be the content div). It looks like this website,…
-
2
votes2
answers89
viewsDropdown and Autocomplete
I have a question about how to perform a certain function. I would like that, when a certain supervisor is selected, in the "technical" box a list of the technicians related to it appears. Example:…
-
2
votes2
answers1244
viewsChange the color of an image in css (jquery)
I have an image on my page: <img style="border:0;" src="img/corpo_menina.png" alt="" width="320" height="480" usemap="#dtb61iMap" id="dtb61iMap" /> At a time of my application, various changes…
-
2
votes1
answer1062
viewsHow to change the size of a :before or :after dynamically with Jquery?
Can anyone tell me if it is possible to change the size of a :before or :after dynamically with jquery? Ex: $('#elemento:before').css({'width':'100px'});…
-
2
votes3
answers278
viewsHow to fire a message every click in jquery?
I have a`form`to calculate the IMC index, and every click on a button displays a div message with the result of the calculation, but I want the message to be displayed a only time per click. This…
-
2
votes1
answer1658
viewsDecimal place - Jquery
Good afternoon! The code below calculates the average, however, depending on the value it is periodically decimated, how to round the values in decimals, for example 0.00 or 00.00? Thank you. HTML:…
-
2
votes1
answer1063
viewsASP.NET MVC Calculate value in a table
I’m developing a record where I’ll have a table with some additional details that should be entered together with the main register. But one of the columns of this table is calculated, which is…
javascript jquery asp.net-mvc asp.net-mvc-5asked 8 years, 7 months ago Pablo Tondolo de Vargas 5,444 -
2
votes2
answers1119
viewsAuto select a select option from an input
I have a form, where he collects data from the post office through the zip code. I have the following imput: <input type="text" name="estado" id="estado" /> If the person filled in a São Paulo…
-
2
votes1
answer61
viewsanimation in image
My goal is this excitement here: http://www.pullabulla.com.br/ The terrain accompanying the mouse... What I’ve done so far? css #box, body { overflow: hidden; } #box { position: relative; } #img{…
-
2
votes1
answer473
viewsUpdate the inline of an html table
How do I update the line index of an html table after removing it ? I explain better I have a table I can add or delete items to add I use an auto increment variable: _contaLinha++: Add items to the…
-
2
votes2
answers1487
viewsDynamic writing effect of text
I would like to use in a web project an effect that "writes" the text on the screen as if it were someone typing, pausally. Like if the sentence is "Hello World," he’ll show: Understand "|" as the…
-
2
votes1
answer260
viewsanimation on the main page
Includes a start animation of my project ( example "welcome" and soon after go to the main home, but in case it is the 2 together... Is it possible?…
-
2
votes2
answers100
viewsScrolltop does not work after certain scrolling
I have a div calling for quest, I want that after the ScrollTop 100, he stays fixed. Is not working. var $w = $(window); $w.on("scroll", function(){ if( $w.scrollTop() > 100 ) {…
-
2
votes1
answer156
viewsScrolltop does not work when I use the Body element, but HTML
I did not find an answer or in the jQuery documentation. Because when I use element "body" for Animate with the scrollTop property I want to animate does not work. Follows my code function…
-
2
votes1
answer833
viewsConfusions with JSON.stringify, JSON.parse and OBJECT.push()
Well I’m cluttering up with these commands, in fact what I’m wanting to do is the following. Using localStorage maintain a database. NOME TABELA | DADOS TABELA tbl_TESTE | {teste 01, teste02,…
-
2
votes0
answers338
viewsNavigation by Arrows in Div
I’m doing an autocomplete on jquery and ajax, the results obtained by ajax I’ll put in <div>. I wish the user could navigate with the arrow for the results, leaving the <input> and…
-
2
votes1
answer187
viewsScroll based loading bar
Hello! I wonder, if anyone has ever done or seen on any site, a horizontal bar at the top of the site, example the youtube loading bar, but it increases and reaches 100% when it is rolled to the…
-
2
votes1
answer70
viewsUsing a button or dropdown to separate the query by alphabet letter?
I’m using the DataTable to better organize some spreadsheets of my system, however the client suggested me the possibility of pagination buttons to be replaced by letters of the alphabet, instead of…
-
2
votes0
answers16
viewsWhy jQuery’s . date() method does not update the data in the browser element inspect
Can anyone explain why the method .date() of jQuery does not update (visually) the data shown when using the "inspect element" of the browser? The data is there because it is possible to use them…
-
2
votes2
answers36
viewsChecking for equalities between objects
Well, I need to check the content of 2 objects, I need to know if they are the same or not in the main fields. My idea is to check by inserting some data in the localStorage if that data already…
-
2
votes1
answer137
viewsData loss in session
I’m making a form with steps in Ajax. The idea is to each step take the form data, play an array and store the array in the session, so I can manipulate all the data in the last step: Ajax…
-
2
votes1
answer332
viewsValidation of a Dynamic Select Option
Guys I need a super help! I need to validate a SELECT OPTION that is generated dynamically: <table class="small-grid" style="margin-top:18px;"> <?php $i=1; foreach ($ImportFields as…
-
2
votes1
answer86
viewsAdding tag to photo
I’m trying to add tags to a photo (like the facebook identification system), the error I’m having is this: When I click on an image to put the tags the form first appears in the corner of my…
-
2
votes1
answer54
viewsProblems to filter table contents using <select>
I have a select with the genres "Male" and "Female", when selecting one of these genres, is shown another select with sports modalities and each of these modalities prints a table. I am beginner in…
-
2
votes1
answer2197
viewsfixed menu with jquery on certain scrolling (scroll) of the page
I’m trying to keep this menu fixed https://jsfiddle.net/40ouwkcw/ from a certain scrolling of the page, in this case after the initial image. I found several tutorials on google, but none works in…
-
2
votes1
answer32
viewsjQuery selector eliminating zero incorrectly
In the following case, you have a code being entered in the attribute data-produto of my input. $(".valor.partida").bind('blur', function(){ alert($(this).data("produto")); }); <script…
-
2
votes2
answers101
viewsChange CSS with Jquery
How do I make the user click on a particular link, change the CSS and title? For example: I have this link: Contraste When you click on it, change the CSS and the link name too, passing to Sem…
jqueryasked 6 years, 6 months ago user24136 -
2
votes2
answers1067
viewsHow to avoid jquery library conflicts?
Boas, I’ll try to explain why I’m a rookie. Well I need to use a new library, and this code works perfectly when alone with Oin this example: < script…
-
2
votes2
answers636
viewsHow to call a function only 1 time with mouse scroll?
I need when the user scrolls the mouse up or down, to trigger a specific function only once... I am using the following code but is not meeting my need: var stopScroll = false;…
-
2
votes0
answers31
viewsHow can I leave my window in full screen mode using javascript or jquery?
I’m trying to leave the page in fullscreen when I opened it the code below only leaves maximized has to leave full screen <script> window.moveTo(0,0);…
-
2
votes1
answer960
viewsOpen and close div with jQuery slideToggle feature
I have the following structure: <div class="menu-item"> <div class="botão"></div> <div class="sub-item></div> </div> <div class="menu-item"> <div…
-
2
votes3
answers3043
viewsAssign $.ajax received value to variable
It is possible to associate a value received by $.ajax a global variable, because from these values, I need to add them and show them in another table. I tried but always interprets with local…
-
2
votes1
answer362
viewsHow do I split items and different sub-crops on the same page?
I wanted to divide some items into different subpages, an image of an example. For example, if I click on button 1 he shows the element 1, if I click on button 2 he shows the element 2, but all this…
-
2
votes1
answer20
viewsHow to select lines from 1 to N above
I have a dynamically generated table in the following scheme: <table> <tr class="row-1"> <td>A</td> <td>1</td> </tr> <tr class="row-2">…
-
2
votes1
answer340
viewsAjax request with unexpected return
I have an ajax code that makes a request in a php file, and in this php file has only one echo json_encode('test') In return comes the string "teste"NULL, always with this NULL iserido, after any…
-
2
votes2
answers2283
viewsSearch data in MYSQL and show in Highcharts chart
Person! I’m starting in the development area and I have at the moment the need to work with the Highcharts javascript graphics library. However, I have no knowledge of how to search this data in…
-
2
votes1
answer1480
viewsCheck the predominant color in the image
I have the following code that I will put below, which is responsible for taking the image that the user puts. In this case, the variable img returns only the image url. I wanted to take the image…
-
2
votes3
answers32
viewsJquery . text printing only once
$.getScript("func2.js", function() { $(".teste1").text("1"); $(".teste2").text("2"); }); <div class="teste1" style="color: red"><div> <div class="teste2"><div> 'Cause he only…
-
2
votes0
answers83
viewsChrome Auto Complete fills wrong fields
I have a WEB application that queries dynamically using SQL. After the Chrome update, all system inputs are coming with the user name already filled in. Example: value = 'SUPERVISOR' value should be…
-
2
votes1
answer43
viewsBody selector does not work in wordpress jquery, only '*'
I’m making a site using wordpress and bootstrap. I initially made the site in php and converted to a wordpress theme. I don’t know what happens with jquery selectors, they work in pure php, but not…
-
2
votes1
answer100
viewsHow to load videos inside a div with <select>
Hello ! I have a select with values and video titles. I want to select the video by value and upload within a div. SELECT THE VIDEO... Video-1 Video-2 Video-3 What a jquery would look like ?…
-
2
votes3
answers56
viewsCut word with CSS
I have the following div. <span class="credit-font" id="valYearCD">2036</span> I need the content from within 2036 to be reduced, and whatever content appears within that div, show only…
-
2
votes1
answer84
viewsRegular expression to validate a field
I have an input in the form that should accept only the following formats: Examples 1AB 1AB2CD 1AB2CD3EF The minimum size has to be 3 and the maximum 9, and always follow the standard 1 digit and 2…
-
2
votes2
answers42
viewsRecovering DOM objects ordered by a criterion
It would be able to capture all the DOM objects and sort them by a set of rules. For example, in the code below the attributes data-Gs-x="0" data-Gs-y="0" define the position (x, y) on screen. I…
jqueryasked 8 years, 5 months ago Bruno Nascimento 489 -
2
votes1
answer198
viewsDouble event on jQuery click
I am on time having problems with jQuery events. I have used all the best practices to stop the double event of click. Following are examples: .off() e.preventDefault(); e.stopPropagation();…
-
2
votes1
answer708
viewshow to block a jquery checkbox
would like to know how do I block a checkbox shaped like a boot of the bootstrap because I have it and do a simple check to limit in 2 or only 2 checkbox can be selected. when I select the third…
-
2
votes1
answer526
viewsFunction return jQuery
Hello, I’m picking up on something very simple. I have a jQuery function that checks if there is any modal open on the page. For that he checks the class of <body> and returns 1 if there is an…
-
2
votes1
answer62
viewsconvert content into input
Galera use a javascript script to convert everything I type, inside the input to uppercase. But I have a specific input where I can’t change its content. How can I do this? Follows the code: //…