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
answer53
viewsIs it possible to redirect a page and send a value from a field at the same time in jQuery?
I needed to get a value from a clicked select option and send it to another page, only I would like to be redirecting to that same page. I am using jQuery mobile library, below follows my code in…
-
1
votes1
answer78
viewsUser with browser cookies disabled
I have a system and use cookies to temporarily store information, but I noticed a problem with a certain user and when trying to solve the problem, I noticed that the cookies disabled (do not ask me…
-
1
votes2
answers51
viewsSave information if user leaves page
The page in question has a form right away, this form has only three fields, which are the basic information required, after clicking the button, the fields will disappear and new fields will appear…
-
1
votes1
answer59
viewsMenu Jquery does not open!
This is the page: http://www.magicforbaby.com.br/sobre.php Problem: When I’m at a resolution less than 800px (yes, I’m making use of media queries), i make the menu retracts in a default figure,…
-
1
votes2
answers773
viewsScroll according to Section ID
I got the following li <li class="madmaxmenu"> <a href="#mad-max">Mad Max</a> </li> and the following Jquery $("li.madmaxmenu").click(function() { $('html,body').animate({…
-
1
votes2
answers140
viewsFunction does not recognize checkbox.checked
I have the following function: function alteraSaldo(item){ saldo = parseInt($('#saldo').val()); campo = $('#'+item); if (campo.checked == true){ alert('sim'); saldo = saldo -…
-
1
votes2
answers244
viewsAdding more input with jQuery
Guys I have a simple form with 3 input. I need to enter a quantity in the 'Qtd' input, and with that I need jQuery to multiply the table with the form, and change the 'name'. Example; If I enter 3…
jqueryasked 8 years, 5 months ago Hugo Borges 5,294 -
1
votes3
answers1797
viewsHow to send Jquery Json array to PHP
I have a table where the lines constantly change order, I need to record this table in the bank. Since I will no longer modify the table I click on a "Confirm Grid" button, at that moment save this…
-
1
votes1
answer271
viewsUndefined index in value pass with AJAX
I am trying to send binary Blob data by Ajax to upload via PHP. However, I am unable to access $_GET. Returns an error saying undefined index: responseText : "No imgagem found" when I comment the…
-
1
votes1
answer39
viewsUpdate link within a variable
I have the following code: // Vegas // $(".bg-fixed").vegas({ // slides: [ // { src: "/img/fundos/slide1.jpg" }, // { src: "/img/fundos/slide2.jpg" }, // { src: "/img/fundos/slide3.jpg" } // ], //…
-
1
votes1
answer352
viewsChange iframe src and post date with javascript
i have a script that changes the src of the iframe by java script (it has to be by this method), however I do not know how to send data by post only by get because it is only by putting the data in…
-
1
votes2
answers1159
viewsTranslate website automatically according to the country of the internet user
I wonder if there is a php or JS function that through the visitor’s IP makes it possible to translate the site automatically according to the country of the internet user without needing him to…
-
1
votes1
answer51
viewsClear 2 fields of type select when filling a given input field
I need to clear the filled values of 2 fields of the type select when filling in a field of the type input. When filling in the field input by name postcode i want the values of the fields of type…
-
1
votes1
answer38
viewsI can’t run the jquerry loop
I need to create a loop so I can feed it a graphic. while($(".previsto").eq(0).text(),){} I need to take these values eq(0), eq(1), eq(2)... $(".previsto").eq(0).text(), $(".previsto").eq(1).text(),…
-
1
votes1
answer34
viewsMake cumulative value in loop
var previsto = []; for(var i = 0; i < $(".previsto").length ; i++) { previsto[i] = $(".previsto").eq(i).text(); } I need to take the next amount adding up the previous one, to have a buildup.…
-
1
votes0
answers29
viewsWeb service data format identification
Good night! I am implemented a service in one system for other systems to consume. This system consumes data in XML and JSON formats. I want to know if there is any way to identify when the user…
-
1
votes0
answers222
viewspull out the avatar upload krajee preview?
I am using the jquery krajee plugin to upload images, however I have a problem. I cannot remove the zoom button from the image after uploading This is the configuration script code: <!-- jQuery…
-
1
votes0
answers39
viewsAutocomplete after pasting Jquery text
Hello, I have the following problem with Sharepoint in the following input: <input id="listNCM" class="ms-long ui-autocomplete-input" autocomplete="off"> This input searches products through…
-
1
votes1
answer1389
viewsUpdate DIV without refresh with Ajax
I have an ajax that runs through post, some information in PHP to another page. I saved this information in session. I would like to update the div where I have a modal. In this case, this modal…
-
1
votes3
answers324
viewsCheck which p has no text
How to verify which p has no text value? I have the following HTML code <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title>…
-
1
votes0
answers47
viewsJavascript copying content from another DIV that is not for copying
Can someone please help me? The script I did is to turn the curriculum matrix that is in a ul into separate columns, but it’s picking up the curriculum matrix of other courses. I remember how to…
-
1
votes2
answers1453
viewsHow to detect scroll at the beginning and end of a div with jQuery
I need to detect when the scroll page (whether it is the mouse scroll or the browser sidebar) go through a certain div, and identify the beginning and the end of it, because I need to apply an…
-
1
votes0
answers282
viewsValidate select with the jquery.validate plugin
I am not able to validate the html select with the jquery plugin.. The select to be validated would be select class="Uf" How would you validate this select with jquery.validate? I’m doing like this…
-
1
votes1
answer153
viewsButton disabled when not in "mobile resolution"
Good morning, you guys! I’m a beginner in jQuery and Bootstrap, and I’m having a hard time using both simultaneously. I am wanting to generate a button that, when clicking, displays a small form for…
-
1
votes1
answer1277
viewsI want to use ajax to simply update a table that reflects the database, without updating the page
I have index.php, which has side by side an insert form and a table that reflects the database, do not need to have timeout, I just want that when I make a new record in the table, it will appear in…
-
1
votes2
answers43
viewsfrom Javascript to jQuery
Well I have a question about jQuery, what the following code would look like Javascript Puro using the jQuery? function writeTotal(value){ var total = document.getElementById('total');…
-
1
votes0
answers34
viewsmousedown in select Firefox
At the time of click in a <div> the <select> should open. That way I can open the <select>. $('.teste').click(function(){ var element = $('#select')[0]; var ev = new…
-
1
votes1
answer666
viewsLike/Excuse button with AJAX
On a certain page I have a button/link written "Bookmark" <a href="SITE.COM/post/favoritar/ID" class="btn-favorite-normal">Favoritar</a> Where the ID is the post id, but anyway, I…
-
1
votes1
answer924
viewsCalculation problems with jquery.maskMoney
Guys I have a javascript that makes the perfect calculation between 3 inputs. Being them. 1- COST, RECEIVES THE COST OF A PRODUCT 2- SALE, receives p selling price, and automatically calculates…
-
1
votes1
answer417
viewsRemove bar values from graph
I need to take the bar numbers off the chart I’m using, but so far I haven’t found which option I do this with. I’m using the Highcharts. Follow the image ] Follows the code: Highcharts.Chart({…
-
1
votes1
answer45
viewsHow can I scroll to a specific location on the page using jquery?
It is possible to scroll to a specific location on the page using jQuery? The location I want to roll needs to have: <a name="#123">here</a> Or you can just pass a specific DOM ID?…
-
1
votes4
answers1566
viewsASP.NET MVC input number
I’m trying to use a input with type=number, but in Chrome is giving that the value informed should be a number. The problem is the state model that is returning invalid, because when giving the…
-
1
votes1
answer147
viewsStop Jquery request by refreshing the page or clicking on a link
I am using long Polling with PHP + Jquery, when the user enters the site a background connection to the server is opened through Jquery this way: var req = $.post //(resto do codigo aqui). This…
-
1
votes1
answer40
views.val does not work on Ubmit button
I have a Ubmit button with a span inside: <div class="btn-toolbar justify-content-center"> <button type="submit" class="btn btn-primary btn-loading"> <span…
-
1
votes2
answers87
viewsMultidimensional array list
I have this bond: aaff = [];contador_selecionados=0; $(' .values .layout .acf-input').children('').each(function(index,element){ contador_selecionados++; aaff.push( element.value);…
-
1
votes2
answers931
viewsRemove specific input file Multiple type="file"
I input as follows: <input type="file" id="arquivos" name='arquivos[]' multiple onchange="funcao_listar()"> Where after clicking the button and selecting the various files to upload it lists…
-
1
votes1
answer164
viewsImage transition css and html
Guys, I’m starting to get interested in html and css, I’ve been studying and taking a course, and I’m doing this site. I put a transition for when it scrolls the sidebar, but I wanted to be smoother…
-
1
votes2
answers99
viewsCompare a column’s value with the checkbox
I’m trying to compare the value of a column of a table, so that depending on what is selected, show or hide the field, I arrived in this code: td = tr[i].getElementsByTagName("td")[3];…
-
1
votes2
answers149
viewsFullpage JS, running on different pages
I’m developing a project in Angularjs and I’m using Fullpage.js to scroll the pages. So far so good, the problem is the following: As I have internal pages, I also need to use the scrolling of the…
-
1
votes0
answers52
viewsSelected link when changing slider
Good afternoon, I’m in need of help, I’m new to Javascript, Jquery, etc. I’m developing a project and created a part with Owl Carousel 2 where Slider changes as I click on the alphabet links. When…
-
1
votes1
answer65
views -
1
votes3
answers663
viewsDynamically access a JSON element
I have the following JSON: [{ "posts": { "ID": 452, "post_date": "01\/01\/2016 15:30:00", "post_title": "Titulo do post" }, "postmeta": { "anexo": { "size": { "value": "615", "unit": "KB" },…
-
1
votes1
answer821
viewsAccept comma in jquery / Javascript calculation
The system does not work when typing number with comma, for example 2,14, 22,14 and so on... only with end point 2.14, 22.14 and so on... Below the function I use. How to use function with the…
-
1
votes1
answer131
viewsFlexslider - Thumbnails Vertically
Hello, I’m using a Flexslider to do the listing of page images, but I wonder if there is the option to list the Carousel images vertically, at the moment, they are going through the horizontal.…
-
1
votes2
answers148
viewsValidate all required dataannotations fields in the tabs
I am using tabs from bootstrap and use the dataannotations to include the required. However it does not validate all fields, I need it to validate the required, and if it is not validated, it…
-
1
votes1
answer40
viewsHow to use jquery after() in javascript?
How do in javascript the same equivalent function in jquery after? I want to add one div right after the other, so <div id="div1"></div> <div id="div2"></div> <!-- div 2…
-
1
votes2
answers183
viewsExchange text in icon according to text
<div class="modeloProduto"> <p>Massa Muscular</p>" </div> I don’t know much about site programming but I’m making a site with what I know, I wanted a script that changes the…
-
1
votes1
answer318
viewsdatatables recover value not shown in table
I have a table generated by datatables that shows name, document and phone. It works perfectly more I want to appear tooltip to show additional information, i even managed to show by taking the…
-
1
votes2
answers983
viewsLeave Input next to Label
How to align inputs with the label Good afternoon, I have a dynamic form, it is done using Bootstrap and the inputs/Labels is according to the database data, everything is correct, but in the inputs…
-
1
votes2
answers657
viewsHow to focus on a specific DIV and blur the rest
Is there a Javascript/Jquery library that of a targetdelimiting an area in a DIV specific and blur the rest ? Example I added a new item to the menu and as soon as I loaded the screen this one focus…