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
votes3
answers3061
viewsUpdate a specific DIV without refreshing the page
How to update a DIV without refreshing the entire page? Formerly in Rails 2.3.10, remote_function was used to update a certain div. Now in Rails 4.2, since you could no longer 'remote_function' how…
-
1
votes0
answers708
viewsProblems with DATEPICKER, using only month and year
Good afternoon, you guys I have a little problem in my plugin datepicker I’m only using month and year in it, and when selecting a month and a year, the month instead of coming in number, for…
-
1
votes2
answers121
viewsdelete select options from other selects
Good, I have 4 html selects and in all of them I have the same options, I wanted when selecting an option from the first select that same option was placed as disabled in the other selects is…
-
1
votes1
answer367
viewsRun javascript function in php
I’m building a chat system in php, and in the online client verification function that will be an ajax calling a php file from 30 to 30, and in this file there will be a foreach that will bring each…
-
1
votes3
answers109
viewsExecute code only if the user is not in the tab
I wonder how I can make to run a script (in this case are those desktop notifications) only if the user is not open tab, I mean, I want to send a desktop notification to it only if it’s not open…
-
1
votes1
answer51
viewsCapture Script Opening Time
Hello, everybody. I am trying to create a project, whose function is to identify the time the page is open (eg if it was 1 or 2 minutes open). When closed, save time information in the database.…
-
1
votes1
answer111
viewsExport Sharepoint list to json using jquery
I’m using the sharepoint and would like to know if there is any way to export the list from Sharepoint to json, that is, to make a ajax
-
1
votes4
answers1845
viewsHow to identify Focus in a div?
Galera mounted an input system with the same layout of android. Everything works perfectly on input but the input supplier stays within a div, because I have to add a button instead of x. The…
-
1
votes1
answer257
viewsIs it wrong to mix $.post with $.ajax in jQuery?
I am making a login screen with Ajax, jQuery and PHP. Follows the code: $(document).ready(function(){ //Quando 'btnEntrar' for clicado $("#btnEntrar").click(function(){ //Envia por POST para a…
-
1
votes2
answers655
viewsHow to assemble dynamic menu?
How to build this menu dynamically using json? That it was mounted according to the order that came. It is possible?
-
1
votes1
answer64
viewsTrying to make Alert on all href of the page but only one is displayed
I’m doing some tests and I came across this very boring mistake. It’s easy to explain: I want Jquery to give the alert in all the <a> of the page, but it only alert once and nothing more.…
-
1
votes1
answer469
viewsSend id to an Hidden field by clicking on an item in the.js autocomplete
I need to send the client id to an Hidden field by clicking on its name that is brought by the jquery autocomplete. The autocomplete is already working ok.. what I really need is to click send the…
-
1
votes2
answers917
viewsTake the last word of a string and put it at the beginning with jQuery
I have the phrase: "Tomorrow it will rain". I want to take the last word and leave it like this: "rain, tomorrow will go". I’m doing it this way: var frase = 'Amanhã vai chover'; var palavra =…
-
1
votes2
answers297
viewsHow to get checkbox and option value with jquery
I have the following image below and each checkbox corresponds to the value <input type="checkbox" value="3" class="serie2" id="serie2[3]" name="serie2[3]"> <input type="checkbox" value="4"…
-
1
votes2
answers244
viewsTinymce does not work with append
When I add a direct textarea to html tinymce works, but with jquery append, so: $(".nova_questao").click(function(){ $(".questoes").append( '<div class="questao">'+ '<h4 class="h5">1.…
-
1
votes2
answers92
viewsproblem when converting text to lowercase
Galera created a function that converts the text to lowercase inside the input, the problem is that when I enter an input with value, and having change something the cursor jumps to the end. Someone…
-
1
votes0
answers216
viewsCart product loop at transparent pagseguro checkout
Good morning to all, I have a question and a problem to solve. I’m setting up a transparent checkout, and it works by the way. Currently I put products in the cart, we are the subtotals, to…
-
1
votes2
answers79
viewsData html with jquery
I have a question. I will make the jquery be in charge of inserting the images depending on the width, and each image will be on the data-mobile and data-desktop. <img class="data-img" src=""…
-
1
votes2
answers451
viewsTraversing json using Ajax jquery
Guys I have a doubt, how do I go through the Json and recover specific objects through ajax? Code: function loadJson(){ $.ajax({ url: "data.json", context: document.body }).done(function() { $( this…
jqueryasked 8 years, 9 months ago Bruno Bafilli 327 -
1
votes3
answers535
viewshow to perform calculations between 4 input, loading page or change value
I have 4 input fields, being: Cost that already comes with a value The freight field, which when changed the value must be added to the cost and displayed in total The discount field, which when…
-
1
votes1
answer339
viewsHow to check the size of a div and adjust it by jquery?
How can I check the size of a div with jquery? The timing of that div is automatic, but I’d like to limit your endurance. I am assigning a class to this element, because it is inside a loop of my…
-
1
votes1
answer51
viewsHow I get the object or value of a tr with Datatable
function excluirDadosTabela (){ $('#gridtabelaDocumentos').on('click', '.excluir', function(e){ e.preventDefault(); var teste =…
-
1
votes1
answer234
viewsHow to make a serialize of certain part of the form?
I own a Togglable tabs and would like to serialize the data only of the current index or active tab. This form is "global" so to speak, and this tabs gets inside, an example of this would be:…
-
1
votes2
answers2635
viewsFixed menu after scrolling
I want to get the menu fixed after certain scrolling, <script> $("document").ready(function($){ var nav = $('.menu-topo'); $(window).scroll(function () { if ($(this).scrollTop() > 150) {…
-
1
votes0
answers162
viewsSelect2 does not work after cloning the entire Section
After cloning an entire Section, select with Select2 no longer works. I tried to use Destroy to use Select2 in JS but it doesn’t work. Can anyone help me? It would be of great value. Thank you. The…
-
1
votes2
answers101
viewsHow to use the $ jquery in wordpress?
wordpress indicates using the following code: ( function( $ ) { // Your code goes here } )( jQuery ); But I am using the zurb Foundation 6, and I believe this will not be enough to run it along with…
-
1
votes3
answers533
viewsUpdate button using jQuery
I want to update two fields in the database but without having to update the page but I’m having trouble implementing something like this. That when I click the button UPDATE the fields Phone and…
-
1
votes1
answer81
viewsJSON return giving as undefinided in jQuery
I have this ajax request: $.ajax({ type: "POST", url: "retorno.php", success: function(data){ alert(data["nome"]); }, error: function(erro){ alert(erro); } }) And the return.php file: <?php…
-
1
votes1
answer293
viewsProblem with auto Focus
Guys I created a custom input, and I can’t make autofocus work. Follows the code: $('.form_campos').on('focus blur', function(e) { $(this).parents('.form-group').toggleClass('focused', (e.type ===…
jqueryasked 8 years, 9 months ago Hugo Borges 5,294 -
1
votes1
answer62
viewsClick event is not working
I’m trying to create a dynamic object for a click event. Every time a page is loaded, the data that is saved in the database will be filled in at the front. The click event has the same rule as the…
-
1
votes2
answers1019
viewsIs it possible to change the name of a JSON position using Javascript or jQuery?
I have this JSON: [{ id: 1, total: 50.00 }, { id: 2, total: 70.00 }] I wonder if it is possible to change the name from 'total' to 'price' using Javascript or jQuery?…
-
1
votes1
answer257
viewsChange the json value
I have the following JSON: [{"id": 1,"preco": "R$50"}, {"id": 2,"preco": "R$70"}] I would like to change the price value by removing the R$ leaving only the numbers using javascript or jQuery…
-
1
votes2
answers642
viewsChanging the functioning of Fullcalendar
Good evening, I’m changing the operation of the Fullcalendar template https://fullcalendar.io/js/fullcalendar-3.7.0/demos/agenda-views.html, to suit what I need. By clicking on the link, you can see…
-
1
votes2
answers596
viewsHow to redirect the page only after confirmation?
The user will click on a link and a confirmation message such as "Do you really want to access this page?" should appear. If he confirms, he is redirected, if he denies anything happens. How can I…
-
1
votes2
answers123
viewsHow to intercept and cancel pressed key in IE and firefox
How to intercept and cancel pressed key in IE and firefox? I’m trying to javascript pure but if there is no way can be JQuery. I used the code below but it only worked on Chrome: <!DOCTYPE…
-
1
votes0
answers51
viewsTimeline of content with jcarousellite
I’m creating a timeline using jCarouselLite, but it’s a bug when I advance to a new decade. For example: In the gray arrows I can navigate to other dates, and in the colored jumps to another decade.…
-
1
votes1
answer96
viewsHow to hide title when radio is selected?
I want to put a list of articles on my website and I want it to have the name and a short description of each article next to a radio. When the radio belonging to an article is clicked, a…
-
1
votes3
answers307
viewsEquivalent to javascript wrap
The jquery has a method called wrap that basically adds a container to the desired element, but I can’t find the javascript method, anyone knows?
-
1
votes2
answers156
viewsSave after hiding a div
I use a Jquery code to hide a div, and I would like when clicking close it to save and prevent it from being displayed again to the user when the page is reloaded. $(document).ready(function() {…
-
1
votes0
answers55
viewsjQuery script does not load on mobile devices
I have a question. I have a site in wordpress, and only on one page is not loading jQuery, and only on mobile! Can anyone help me? Follow the script that is not opening: <script…
-
1
votes1
answer245
viewsSend variable via Jquery function
I’m learning Jquery and getting my ass kicked. I created a function in the js file like this: $(function abrir_qd1(variavel){ $(this).click(function(){ $("#quadro1").load('arquivo.php?v=' +…
-
1
votes1
answer69
viewsTake html from a tag, including the tag itself
How would I get a piece of my html along with the tags? For example: I wanted to get this span inside the TD, in case I wanted it all together, up to the tag <span>, drew?…
-
1
votes0
answers71
viewsjquery . load and . ajax return different values, why?
Hello, My problem is that using . load or . ajax on the same address, I get different data values. Here’s an example: <span id="charset"></span><br/> <span id="d_nome"…
-
1
votes0
answers280
viewsCodeigniter3 / Mysql - Select List
Good morning Personal. I’m working on a code using Codeigniter, which has a registration form. This form has three Dropdown (State, City and Neighborhood), and the data are returned from the…
-
1
votes1
answer81
viewsCapture Image Attributes with Javascript or Jquery via Url
I have an image that will be rendered in a Div, but I need to capture her Height because I need to treat it before putting it in the div (size). I don’t have the image on the screen, so I can’t do a…
-
1
votes3
answers801
viewsReplace in the javascript array
Good afternoon, friends I’m having a problem here in javascript. I have an array, but with each Dice it is adding a double quote, and I want to remove them from there. My code is like this: dados =…
-
1
votes3
answers1413
viewsHandle accent with Jquery
I’m having trouble treating stress in jQuery. I would like to remove word accents and replace spaces with "%20". I tried to do it the way down, but it didn’t work. cidade_sem_tratar =…
-
1
votes2
answers619
viewsPass array to Modal
I have the following array $detalhes: Array ( [0] => Array ( [dt_detalhes] => 2016-03-09 [desc_detalhes] => Viabilidade [tp_processo] => Viabilidade [vl_protocolo] => 1234 ) [1] =>…
-
1
votes1
answer89
viewsCreate progress bar with jQuery’s Hover()
I need to create a progress bar while my cursor is on top of an image. If the cursor leaves, then I need the progress to be reset to repeat the process if the cursor goes back over the image. When I…
-
1
votes3
answers237
viewsHow to send Jquery variable content to an html textarea?
I’m having a hard time sending the contents of a variable JS for a <textarea> (in a bootstrap modal) and with XML formatting defined in the variable. Both the JS as to textarea are in the same…