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
votes2
answers201
viewsWhy does comparison using javascript not work?
What I want to do: Algorithm that generates field change logs in front-end. Problem: Certain code snippet I compare the old value with the new value: if( value =! anterior ){ elemento.val( value…
-
1
votes2
answers725
viewsLimit Editfor input in MVC
I have a character limiter for TEXT only. Now I need the characters to be limited in only 2 (I want to make the user type the state, for example: PR, SP, RJ...). How I do it?…
-
1
votes2
answers384
viewsValidation of Image Size
I am trying to use jQuery Validate plugin to validate a field file. I just want to check the image size. If it is larger than 3mb it is not to submit the form. Look at my code below:…
-
1
votes2
answers6021
viewsValidating Email with Jquery and Ajax
I own a form where I perform login to access a restricted area of my site, but now I need to validate the typed email, I tried to change the script that I currently have and have not been able to…
-
1
votes2
answers401
viewsRequest problem with jQuery ($.ajax) and Angular ($http)
I am trying to get some data from an API in the fastest and most direct way. Using Postman I can easily get it just by giving a GET to the url (http://www.wsfebracis.com.br/Json/ListarGrupos), so I…
-
1
votes0
answers67
viewsSingle tooltip in 2 elements (one body and 2 arrows)
I don’t know if the native code of Bootstrap allows this for the tooltip or for the can. I have 2 links and I need to do something that is created a tooltip or a can that can join both links with 2…
-
1
votes1
answer539
viewsHow to apply slider effect on web page?
While observing this page you may notice that there are links like Home, Services, Work, About and Blog. When you click on Services it changes pages using a slider effect, as if the page is being…
-
1
votes0
answers65
viewsPlay running after Pause
Hello, I’m trying to run an mp3 and I’m having a problem, when I click the pause button it executes the command, but soon after it runs the Play, which can be? PLAYMUSICA.PHP <script…
-
1
votes1
answer112
viewsHow to add groups of inputs according to the number inserted in a text box without refreshing
How can I make a form where you have a text pad of type number, and according to the number I enter appears groups of text box to fill in this same form? Example: Text box (number of days) = 4…
-
1
votes0
answers66
viewsAppearance of border not reported
var images = $("[data-img]"); images.mouseenter(function() { $(this.dataset.img).css('box-shadow', "inset 0 0 20px black"); }); images.mouseout(function(){ $(this.dataset.img).css('box-shadow', "");…
-
1
votes0
answers54
viewsCluttered slide
I’m having a problem I’m trying to make a slide effect with java , only a problem is happening, the images I chose are getting out of place as you can see below , I’ll post the codes here who can…
-
1
votes1
answer467
viewsProtect against HTML changes without blocking the browser console
Good morning, how do I prevent the user from entering the html element and modifying it? May example: Return a value to screen and feed it within an input called itemSweet, then the user can use the…
-
1
votes2
answers693
viewsTooltip Bootstrap 3 disappear when I click another
I have 3 tooltips. I want them to appear in the click, so I used the following: $('[data-toggle="tooltip"]').tooltip({ trigger : 'click' }); So when I click on the first one, for example, it…
-
1
votes0
answers1034
views"Image rain" effect on CSS3, Jquery or Javascript. How to do?
What I got: -A div with class "background-bg", whose image fills the entire screen. <div class"background-bg"></div> What I want to do: -Create a "rain/snow" effect (falling type) using…
-
1
votes3
answers1272
viewsHow to add multiple elements within jQuery’s html() function?
I have the following excerpt: $('#div').html(); I need to add some div within that div, but I don’t know how, because if I try to do this way it’s wrong: NOTE THE ADDITION SIGNAL FOR CONCATENATION…
-
1
votes3
answers229
viewsHow to add new jquery inputs through a number of a text box, but add only those that are missing
Good I have the following code that adds inputs conforms the number of inserted in a text box, however if the form already has some text boxes I just want to add the difference, ie start text box :…
jqueryasked 8 years, 11 months ago Laranja Mecânica 499 -
1
votes3
answers1394
viewsSeveral different carousel with owlCarousel
On my page I need 3 carousel: One to the banner, another for ruler and one more for ratings. All will be with images and would need each one to have its parameter, but with Owlcarousel I could not…
-
1
votes1
answer162
viewsSeparate 6 images in 3 div, forming a slider with bxslider
I am using the plugin bxslider. Each slider contains 6 images that are divided into 3 div, whose classes are item_top and item_bottom, for three images from top and bottom, respectively. When I…
-
1
votes1
answer72
viewsHelp with Datetangepicker in jQuery
I am using the jQuery Date Range Picker in a form. Follow the code on jsfiddle My problem is when I cling to input Input the date range Picker appears normally, but when I click on the input date I…
-
1
votes1
answer65
viewsScroll button after swapping css with Jquery
I have the following input: When you click the change button a new input appears: When you click this remove button, the first input appears again, only the button breaks the line and looks like…
-
1
votes3
answers2136
viewsError 500 Internal Server Error
I am trying to make a POST query with jquery on my website online but I get the error message 500 Internal Server Error, this is the query (jquery): $('#background').load('map_page.php',…
-
1
votes2
answers752
viewsHow to create an event where when the user presses the space key something happens?
For now I have only this bit of code: personagemPular.on("keyup",function(){ I wanted to trade this keyup for pressing space. And I’m also using a area text in HTML to receive keyboard entries, as I…
-
1
votes0
answers37
viewsWhat is Ajax and how to use it?
I looked for exactly what Ajax is here in the OS but I did not find, I only found how to use ajax for this and for that. So I wanted to understand better, because I only know how to use Jquery,…
-
1
votes0
answers177
viewsHow to use typeahead in multiple fields at once?
Hi, I was wondering how I might be using the typeahead in various inputs. I’m using Bootstrap and with it I made a row with some inputs, in the first input I am using typeahead to search for words,…
-
1
votes0
answers58
viewsHow do I style codes?
How do I style a code ? For example: I posted this code on my blog: <?= "Olá :D"; ?> Only it will display normal, like a text, but inside the tag <pre></pre>. But my question is,…
-
1
votes1
answer2894
viewsCan you cache/retrieve information using javascript/jquery?
Motivation, having an offline application, it is possible to cache information and be sent as soon as the user accesses the page again? How long would this cache last if possible? and what…
-
1
votes1
answer548
viewsAccess Pseudo Elements ::after and ::before and Other
It is possible to access an element ::after raised in the CSS with jQuery ? For example: ul.pager{ position: relative; width: 100%; text-align: right; max-width: 960px; z-index: 30; margin: auto;…
-
1
votes1
answer80
viewsJquery: Switch focus window in browser by clicking link
Hello, I was wondering if you could do the following: By clicking a link from a site, if I’ve already opened it, this tab becomes the focus, if not, it opens a new tab normally. Thank you!
-
1
votes2
answers206
viewsChange attribute "src" with fadein effect
I need to change the src attribute of an image with jquery. Everything works perfectly, I just need to apply an effect that I am not able to put. I don’t know if the way I did it’s the exact way to…
-
1
votes1
answer929
viewsFind and show an object of a . json by the id of the clicked element - jquery
How do I search within a json for an object with a particular id, this process must take place within a function $(document).on('click', 'li', function(){});, and the id to be researched will be the…
-
1
votes1
answer503
viewsChange NAV and DOT Owl Carousel 2
I’m using Owl Carousel 2, but I’m not able to make these changes to the image below. I need to shift the position of Navs and Dots into the banner, if you can give a force I thank you.…
-
1
votes1
answer820
viewsMark current date in Datapicker
Colleagues, How do I make the current date on the Find date checked and change the previous dates that are disabled? See: I managed to disable the previous dates using the code below, but they get…
-
1
votes1
answer53
views.Each in two elements with values in different variables
I have two elements, horaFim and horaInicio that are two inputs and both have the class hour. With each need to have the value of the two separated into variables. $('.hora').each(function (){ var…
-
1
votes1
answer673
viewsHow to Integrate Frontend with Java?
I’m a beginner in frontend. I’m making a system using html, bootstrap, javascript and jquery. I’ll have to make the integration with the java. I would like some guidance because I don’t know where…
-
1
votes3
answers650
viewsJquery calculate average and insert the result into the average field that is disable
Good afternoon, Needed to calculate the average of the values inserted in the 4 text boxes, and only to learn the average result in the middle text box after all are filled HTML <div…
jqueryasked 8 years, 11 months ago Laranja Mecânica 499 -
1
votes1
answer56
viewsI need to modify the css of a radio button Md-radio-button via jQuery
Colleagues, I’m trying to modify the css of a md-radio-button via jQuery but I’m not getting it. <md-radio-button id="radio_letter" style="margin: 2px!important"…
-
1
votes1
answer54
viewsHow to maintain the rotation of images, even with mouse Hover?
My images of the main screen of the site change after 5 seconds using fade effect, but when we stop the mouse on the screen, they stop rotating. Follows excerpt from the code: <li…
-
1
votes3
answers651
viewssessionStorage with expiry time
I made a little script here, but I’m not getting a customization on it. I need to set an expiration time for sessionStorage. Follows below the script: <script type="text/javascript"> if…
-
1
votes4
answers11999
viewsTake the lowest value and the highest value of an array with Javascript?
How do I get the lowest value and the highest value of the array separately with Javascript and jQuery? var arr = ["885.9", "984.9", "444.9", "528.9", "528.9"]; The lowest value in this case is…
-
1
votes2
answers437
viewsSend form only if any input changes
I have a form that opens in a bootstrap modal that is filled dynamically with jquery, this form is enabled for editing, and in this modal has a button "Save changes", I want you to perform an action…
-
1
votes3
answers5506
viewsFormat string or float for currency
I’ve been doing some research but I couldn’t find a solution. I have a float for example: 2087500, I want to leave it as follows $20,875.00. I found several methods of passing float to currency but…
-
1
votes1
answer511
viewsWhen clicking the button makes two ajax requests, how to avoid?
When I click on the "Hire" button it makes two requests on the server at once, as I can avoid this? <button type="button" class="pagar" id="10.00">Contratar</button> Ajax…
-
1
votes0
answers148
viewsAJAX request on the server
AJAX request does not work when on the server...locally works normal... Does anyone have any idea what it might be ? function SalvarPedido() { //Data var data = $("#Data").val(); //Cliente var…
-
1
votes1
answer94
viewsHow to split a string with dynamic value?
I don’t know if it’s the split you use in jquery, but I’m not succeeding. In my code I get the value of ID that comes dynamically, I want to divide the ID in two. A part up to character 16 and then…
-
1
votes1
answer532
viewsAdd buttons in table rows
I’m using: https://www.dynatable.com/ and with it I am able to create the table and upload the json data. The problem is that I can’t add another column with the edit and delete actions, for…
-
1
votes1
answer112
viewsJquery dialog not shown
I’m having trouble presenting a window of dialog onscreen. <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> <link rel="stylesheet"…
-
1
votes2
answers2077
viewsOnkeyup event with Jquery
This is what I need to do onkeyup of inputs classy virgula_nao, obey the function: $(document).on('keyup', '#virgula_nao', function () { valor_do_input = valor_do_input.value.replace(/,/gi, ".");}…
-
1
votes0
answers77
viewsSearch Input Jquery value
I have the following field on the "index.php page": <input type="hidden" id="exemplo" value="<?php $varExemplo; ?>"> I would like to take the value of this field on another page using…
-
1
votes1
answer2740
viewsFadein and Fadeout Effect in DIV
It may sound cliché, but I haven’t found or been able to adapt any code here on the site to my needs. I apologize if it’s content redundancy, but in the future it might help other people. How can I…
-
1
votes2
answers148
viewsWhat does this line mean? --> $.ajaxSetup({ scriptCharset: "utf-8" ,contenttype: "application/x-www-form-urlencoded; charset=UTF-8" })
Hello, I’m analyzing a program already made to learn, it’s working, but I got to this part and I’m not finding online the meaning of it. Could someone help me? Follow the line of code: $.ajaxSetup({…