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
-
0
votes1
answer181
viewsError accessing JSON with Ajax jquery
I’m getting a JSON that I created with PHP as described below, however, when I try to access the properties of this JSON he always returns to me Undefined. I made these test files there to…
-
0
votes2
answers271
viewsUndefined when trying to use the received valid JSON
I’m having a hard time finding the error, I’ve been looking here for hours. I am receiving a PHP JSON using Jquery, I can visualize it as can see below the result of the answer "date": { "sucesso":…
-
0
votes1
answer415
views"Uncaught Syntaxerror: Missing ) after argument list" in . append Jquery
I am receiving "Uncaught Syntaxerror: Missing ) after argument list" which accuses the line of the last closed parenthesis, that inside the callback of a jquery post. I tried to close every possible…
-
0
votes2
answers204
viewsCheck negative balance
Via Javascript or Jquery, I need to check if there is a negative balance. If you have a negative balance, then: var SALDO_DISPONIVEL = 0 other than: var SALDO_DISPONIVEL = 1 The following is the…
-
0
votes0
answers249
viewsPage according to the clicked product ID (JAVASCRIPT)
I’m trying to get the ID of the boot which is a various rival and play on another page to perform a fetch API. Only this button is done automatically, it depends on how many purchases have in the…
-
0
votes1
answer218
viewsTwo filter fields in the second - Datepicker
Ola Stackoverflow Family I’m finalizing a project and I’m having trouble with the datepicker. I have two datepicker fields (calendar and calendario1), working perfectly, Finding precise that the…
-
0
votes1
answer846
viewsShow popup on close tab
Hello. I would like to know a code to display a form as a popup when the user is closing the page. That is, that moment when it takes the cursor up the browser. Because the page was made by the RD…
-
0
votes3
answers2099
viewsHow to change right when scrolling on navbar
Hi people see if you can help me, I need a function using jquery or a simpler method, which change my logo when scrolling the mouse scroll, at the moment I have the following function, which just…
-
0
votes1
answer39
viewsJquery Object groups with same id
how can I create a group of objects where the id_question is equal within a $.each ? Object {id_pergunta: "63", resposta: "não", qtd: "5"} Object {id_pergunta: "63", resposta: "sim", qtd: "19"}…
jqueryasked 7 years, 1 month ago Carlos Lopes 185 -
0
votes1
answer88
viewsJquery, append vanishing
good afternoon! My Jquery is adding the results obtained via ajax and they are disappearing. What might be happening? And how to solve? Thank you var _urlSearchInput; var _urlSearch;…
-
0
votes1
answer182
viewsReturn to same page after crud of a modal
I have a page with a datatables, in the event select of this table open a modal passing the id of the selected record to modal, in the modal I delete this record, soon after I close the modal and…
-
0
votes2
answers311
viewsList Json in a Select with Jquery
I’m not getting lists of a Json in a Select My Jquery code looks like this: $("#cidades").change(function () { var options_escolas = ''; var cidade = $("#cidades").val(); $.ajax({ url:…
-
0
votes1
answer88
viewsHow to structure multidimensional array with json
Good night!! I have a json that returns in this format: {rua: "A01", col: "01D", alt: "A"},{rua: "A01", col: "01D", alt: "B"},{rua: "A01", col: "01D", alt: "C"},{rua: "A01", col: "01D", alt: "D"}…
-
0
votes1
answer41
viewsHow to take the value that is loose inside a div and ignore the values that are inside other tags inside the div, using jquery?
I have the following HTML: <tr> <td> VALOR PARA SER PEGO <span>Esse valor não é pra ser pego</span> <span>Esse valor também não é pra ser pego</span> </td>…
-
0
votes1
answer72
viewsConvert value of a select options component to number
I have a component select and would like to convert the value for the format Number 'cause when I go save I need a value 2 and not like this "2" the ideal would be to convert all tag <option>…
-
0
votes2
answers412
viewsReact onChange is not firing
I have the following code: handleChange(event, module) { this.state[module][event.target.name] = event.target.value this.forceUpdate(); } render() { const handleChange = (event, module) => {…
-
0
votes2
answers1546
viewsPicking input values from a given form
I have the following scenario: Several forms, but I need to set all inputs only of the form that is in action, which is triggered by the button. function enviaForm(id){ $(id).submit(function(){ var…
-
0
votes1
answer28
viewsReplace value after tag, but inside div
I have the HTML code, and I need to replace the decimal value at the end of the div, the project is doing a reverse proxy of a site, and I have to put the value of the tag "changed" in the place…
-
0
votes2
answers66
viewsHow to generate HTML at a specific point in the page?
I’m learning to code in Javascript and jQuery, and I’m having trouble generating HTML code. Given an HTML body how do I insert HTML code within a specific place? In the case below I already know how…
-
0
votes2
answers181
viewsGenerate multiple records in Mysql
In the Mysql have two tables: CUSTOMERS | codigo-cliente | nome | grupo | valor | |----------------|------|-------|-------| FINANCIAL | codigo-cliente | codigo-boleto | grupo | valor |…
-
0
votes2
answers37
viewsHow do I send an email form and change the DIV to another one with a message?
Oie I did next: HTML <div id="minhaDiv"> <form id="formulario"> <input type="text" name="nome" id="nome" autocomplete="off" placeholder="Digite seu Nome"> <input type="text"…
-
0
votes1
answer731
viewsHow to select a specific HTML tag when there is no id or name and (rarely has a class) using jQuery?
I have the following HTML code: <div class=""> <table> <tbody> <tr>TITULO DO BOX</tr> </tbody> </table> <table class="classeTable"> <tbody>…
-
0
votes2
answers189
viewsMultiply values from a dynamic table
I have a dynamic table with columns of quantity of a product and unit value, where I need to multiply the unit value by quantity (Qtd X val_unitario) and at the end display the total sum of the…
-
0
votes2
answers168
viewsPROBLEM WITH AJAX JSON
IMG_TROCAR.PHP file code <?php include_once('config/config.php'); $ligacao = new PDO("mysql:dbname=$baseDado;host=$host", $user, $pass); $id = $_POST['id_user']; $mudarAvatar =…
-
0
votes0
answers94
viewsCalculate expression in a single Jquery input field
I’m developing a calculator on HTML + Jquery where I have the basic operations for it, but need to implement the following: When the user type in the field input a kind of expression: (5*5)+4 the…
-
0
votes3
answers262
viewsBrowse array to find a particular index
I have the following code JS: var botao = document.querySelector('input[type="submit"]'); botao.addEventListener('click', function(e) { let form = document.querySelector('form'); let ipt = { nome:…
-
0
votes1
answer62
viewsOnly get the lang of the clicked class
I need to take only the lang value of the clicked item, but only takes the first value. I don’t know how to solve php: $i = 0; while($rowFoto = mysqli_fetch_array($matrizFoto)) { echo "<div…
-
0
votes1
answer58
viewsAutoplay videos when finished
I have the following code <div class="col-lg-12" style="padding:40px 10px 40px 10px;"> <div class="col-lg-1" style="padding-right:0;margin-top:20px;"> <i class="fa fa-chevron-left…
-
0
votes0
answers27
viewsHelp with jslider Plugin
Has anyone ever used that plugin? I’m trying to implement it on a page but I’m not getting it and the documentation has nothing. I managed to implement the html and some issues in css as shown…
-
0
votes2
answers2717
viewsPick user input value with jQuery
Hello! Here’s the thing, in my form, I’m trying to get the value typed by the user in the input way below: // jQuery function teste() { var nome = $("#nome").val(); alert(nome); } // HTML <form…
-
0
votes1
answer482
viewsInsert data from multiple forms without refreshing with ajax php
Good morning! I’m having problem in an application, what happens; 1 - I have this guy who gets the name of the product and shows my list: var req; function buscarProd(valor) { if…
-
0
votes2
answers145
viewsJquery autocomplete 1.9.1
I have an app using Jquery 1.9.1 (uses the old version because it has functions in the menu that only work in this version), I’m trying to make the autocomplete, but is giving error…
-
0
votes1
answer724
viewsHow to add two events in datepicker?
I need to get the datepicker events added depending on where it is clicked. For example: I need to filter some data per day and I can filter the same data also per month. But with my code, it’s only…
-
0
votes1
answer943
viewsDynamic field validation with Jquery.validate()
I’m having difficulty validating the fields of a dynamic table using the plugin jquery.validate() where the input are sequential. JS $("#addLinha").on("click", function () { // ADD QTD DE LINHAS…
-
0
votes1
answer72
viewsAlert via jQuery not working as planned
I need a help! I am developing a web project, and in it I call jQuery a WCF SOAP test, very simple, on a button, and returns an Alert with a value. It’s working, but not the way I want it to. In the…
-
0
votes2
answers1361
viewsInsert content from an HTML file into a DIV - jQuery/Ajax
I’m making a system GED here for the company where I work (very simple, just to organize better). I’m developing the screens first, then connect with the comic and make things work. I have a menu…
-
0
votes1
answer23
viewsI cannot access element (Child) but it exists (fullCalendar)
Using the function eventAfterRender I’m trying to access a child element that exists, but using the function find(), apparently not. Through the console, I can navigate to the child element as…
-
0
votes3
answers219
viewsDuplicate jquery code without refreshing and deleting text in form inputs
I’m creating this Javascript function, it creates a form and adds in the body of text in another div, only when I click the button it deletes the content that was already written in the input.…
-
0
votes1
answer863
viewsHow to take the value of a php variable and use it in the ajax request
I am creating an order page with the code below, what I want is that when choosing the quantity of the product, it already appears the total value of product x quantity. If I set the value var…
-
0
votes0
answers52
viewsmodal on top of another modal without accepting each other’s shortcut
I have a modal, which opens another modal, so far so good, I put a shortcut Ctrl+alt+c to cancel, so far so good, only I want that when I open the second modal, and click on the shortcut only it…
-
0
votes2
answers113
viewsDetect click on the same dynamic and non-dynamic item
When I click on the item, the function changes the class this item so it can be detected by the other function when clicking. The problem is that when I use the .click, the click is detected…
-
0
votes1
answer753
viewsGet values from a json / object
I have the following json: And 2 selects, one for state and one for city, I have already filled the status correctly using this json: //combobox estados…
-
0
votes2
answers218
viewsjQuery’s "Immature()" does not work
I’m trying to make a relatively simple effect with the .animate() jQuery, but it’s not working. The effect in question would be to decrease the margin-top for the element to go up a bit. Note: if I…
-
0
votes1
answer40
viewsCheck the input and then click the button
As I do only if the input is marked is that one can click on "ok,". <div class="container"> <button type="button" class="btn btn-info" (click)="openModal(template)">Create template…
-
0
votes0
answers53
viewsAJAX does not update div by id
I am developing a login system, where I need to return the validation message to the user in a div on the login page itself, however the error message is appearing on the validation page. I’m using…
-
0
votes1
answer1918
viewsSend variables via GET by php Ajax
I am creating a page in PHP that makes a query in a JSON/PHP via ajax and I need it to send to the URL, the form variables so I can make a query in this JSON/PHP. HTML: <form method="GET"…
-
0
votes1
answer148
viewsMaterialize Collapsible option does not work properly
I am using the Materialize Framework to display a list. This list can be expanded, but only works after reloading the browser several times with CTRL + F5. When I load directly into the HTML, it…
-
0
votes1
answer81
viewsCarousel element change capture
I got the following carousel done in bootstrap Previous Next And I got the following js done in order to catch the title from whatever image you are ativa on screen at the moment: setInterval(…
-
0
votes1
answer407
viewsHow can I remove table row with jQuery
I created a table with two buttons one has the function to add new rows to the table and another remove them. I tested this way and can only add new lines, when I try to remove an error happens. var…
-
0
votes1
answer58
viewsHow to make two separate selections
Good afternoon, you guys, I am developing an application where the user will have a number amount, for example from 01 to 20 and he should perform two selections, 3 red numbers and 5 blue. The first…