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
answer223
viewsGenerate JSON from a URL and Search by location
Good note to everyone, I wonder if there is any possibility to show a JSON list from a URL and in that same url generate the following values: nmConvenienced, listEspeciality, listEndereco. I tried…
-
-1
votes1
answer489
viewsUpload Ajax and PHP
I am trying to upload images via AJAX and PHP, but without success. Already reviewed, updated, anyway, the codes match all the other codes I researched, I really don’t understand. HTML: <form…
-
-1
votes1
answer157
views -
-1
votes1
answer51
viewsDropdown button does not work inside a div
I created a button dropdown that worked perfectly. But I had to put it between a div and then it stopped working. Which could be? <div class="dropdown"> <div class="col-md-4"> <button…
-
-1
votes1
answer186
viewsI want to import an entire page with jquery, should I divide the page into different jquerys so that I can write code through the jquerys?
With this jquery I am importing the whole page, but I can’t put html Divs in the middle of the query, only at the end. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">…
-
-1
votes2
answers348
viewsreal money mask in php jquery array
I have a field to insert a monetary value into an array but the mask only works in the first input, when I add a new line the mask does not work. In this line $("#finTpVal"). maskMoney({Symbol:'R$…
-
-1
votes2
answers101
viewsForm with PHP sends POST variables to same page with jQuery without reloading
This basic code below will be used to filter via POST and jQuery a SELECT on a PHP page. The form sends to the same page, jQuery receives and sends to PHP, which receives via $_POST["campanha"];.…
-
-1
votes1
answer215
viewsCalculate with comma and dot with Jquery
Personal as I calculate example 1.400 + 1.400 would like the result to be the following result = 2.800 and not 2.8 someone can help me there ? $('input[type="text"]').keyup(function(){ var val =…
jqueryasked 6 years, 7 months ago Hemerson Prestes 655 -
-1
votes1
answer77
viewssetTimeOut error Uncaught Referenceerror: lightning_one is not defined
I created a Function to generate display effect for a certain time, the images are loaded only in the page load, then Uncaught ReferenceError: lightning_one is not defined as shown below: the…
-
-1
votes1
answer20
viewsRedirect to page when removing iframe
When iframe is edited or removed the page is automatically redirected to my url... <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script…
-
-1
votes4
answers3789
viewsUse jQuery-Mask with Laravel
I’m trying to use jQuery-Mask with Laravel, but it doesn’t work. If anyone can help :) When I look at the Chrome Console tab it gives the following error: My code is as follows (tag head):…
-
-1
votes1
answer61
viewsAdd HTML with Javascript and Remain
I want it to be possible to add and then when update the page it stays saved in my HTML. .menu { width: 100%; height: 70px; background-color: #56B8BD; max-height: 70px; } .menu ul li { float: left;…
-
-1
votes1
answer7600
viewsAlert function in Jquery
Good morning! Can anyone tell me a way to find syntax errors easily in Jquery? I have a simple code of "Alert" that works one way, but not another... That’s how it works, but fucked: <script>…
jqueryasked 6 years, 6 months ago Gabriel Salomão 39 -
-1
votes1
answer71
viewsHow to Generate Summation in loop fields
As I have no knowledge of javascript need a help how I can do, this my script below perform the sum of the items of the fields "value" of each row in loop In the case the "Total" field would…
-
-1
votes2
answers977
viewsDisable weekend and enable days with Fullcalendar plugin Jquery
I’m using the plugin fullcalendar.js How would you leave disabled weekends and also leave enabled only 15 days counting today’s date? I have this code with the plugin fullcalendar.js JS…
-
-1
votes1
answer123
viewsReplace input text field by button maintaining filter functionality in Javascript
I found this javascript filter that is working and very well, but it is a text type input, and I would like to convert the input into hrefs links, but I haven’t been able to yet How is it:…
-
-1
votes1
answer221
viewsDatatable duplicating elements
I have a search done with Ajax via Jquery that returns a tablet with Datatable. But the Datatable elements are duplicated as I have searched (see print). I tried using Destroy, but then it stops…
-
-1
votes1
answer193
viewsSearch data with JSON
I need, through a <select> </select>, bring the data to some input[type='text']. I believe it is through JSON and AJAX, because the page can not have any "Submit". For example: I have a…
-
-1
votes1
answer69
viewsJquery code is not executed
I am following a tutorial to make an AJAX function that detects the change in a <select> to upload the information to another <select>. I did the same thing in the video, but mine’s not…
jqueryasked 6 years, 5 months ago Leandro Souza 75 -
-1
votes1
answer136
viewsCurrency type formatting error in jquery
I’m creating a mask in my field like this: $("#ValorMultaSt").mask('000.000.000,00', { reverse: true }); When I type some value works perfectly, but when I perform any action on the screen it puts a…
jqueryasked 6 years, 5 months ago Stand Alone 350 -
-1
votes1
answer274
viewsPaging in CRUD with Jquery and Ajax
I have this code in HTML/Javascript/Jquery and I need to create a pagination with the server elements. The page displayed the elements from 5 to 5, I wanted to know how to proceed to the next pages…
-
-1
votes1
answer825
viewsCalling API via Post with JS or JQ
Personal someone could help me by giving an example of how to consume an API that returns a JSON just like this API below: https://console.faceplusplus.com/documents/6329465 Staff implemented the…
-
-1
votes1
answer63
viewsmove the container without appearing scrool
good morning, I’m having a problem when I move a div in mine, I make her walk 50% the size of the screen, until then everything ok, more when she goes to the side opens the scroll option to see me…
-
-1
votes1
answer61
viewsHow to identify equal classes in numerical order with jQuery?
On my page I have dozens of buttons that, when clicked, change the link (href) of a single element a, with the method attr. To avoid putting a class on each button as there are many, I would like…
jqueryasked 6 years, 4 months ago Thiago Soubra 341 -
-1
votes1
answer78
viewsDisplay qrcode in an alert
I have this code: $("#exemplo1").click(function(){ $('#codigoQrCode').qrcode(JSON.stringify('teste')); //se vcs clicarem aqui, aparecerá o qrcode(canvas) }); $("#exemplo2").click(function(){…
-
-1
votes1
answer1469
viewsstop a foreach Java
I have a script that reads each field of the form: // JavaScript Document $(document).ready(function (e) { $("#cadastrar").on("click", function () { $(".required").each(function (i) { if…
jqueryasked 6 years, 3 months ago Carlos Rocha 1 -
-1
votes1
answer317
viewsUpload images "on demand"
On the site I’m developing has a "gallery carrosel" which is nothing more than a slider, where only an image will appear and has arrows for the user to navigate (passes alone the house 5s also)...…
-
-1
votes1
answer37
viewsHow to change a variable value only when radio buton is checked
In the archive .php there is a certain variable. <?php $freteselecionado = "<script>document.write(checado)</script>"; So I have two input of the kind radio to receive the value.…
-
-1
votes1
answer96
viewsImplementation of a catalog with Turn js, using Ajax
I am implementing a flipbook in which you need to load the sheets dynamically, so I am using Ajax. When I implement the flipbook in a static way it works perfectly. And I can also call all images by…
-
-1
votes1
answer74
viewsI am doing an image insertion with jquery ajax and php but the move_uploaded_file is not working it does not send anything
HTML <form id="formImage" enctype="multipart/form-data"> <div class="corpo"> <div class="foto"> <h5 class="white-text title">Escolha sua foto de perfil</h5> <br>…
-
-1
votes1
answer46
viewsHow to let the loop separate on Row
Good night, basically I need to get one. json and loop it to pick up all the tables with the title name, but when doing so it returns me all together and can not set apart to put inside a table.…
-
-1
votes1
answer118
viewsHow do I differentiate between foreign and national Fps in javascript?
I’m making a system that needs to validate the Brazilian field Cpf but if Cpf is foreign does not need to validate the validation part of Cpf is OK, but how would I put in the function to disregard…
-
-1
votes1
answer57
viewsToggle elements inside elements with jQuery
I want to learn a way to toggle on a list within a list in a very efficient way in jQuery. The way I tried doesn’t work because when firing the toggle at one, everyone is affected. It would be too…
-
-1
votes2
answers33
viewsHow do I change the title of the browser tab repeatedly?
<html lang="pt-br"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet"> <script…
-
-1
votes1
answer27
viewsI try to make a request ajax but it does not send any dice
$(document).ready(function() { var lerId = localStorage.getItem("id"); var dados = localStorage.getItem(lerId); var dadoss = dados.split(","); var titulo = dadoss[1]; var imagem = dadoss[2]; var…
-
-1
votes1
answer74
viewsPick up Label Div Daughter Value
$(".Linha").on('click', function(){ // Como pegar o Valor da Parcela ao Clicar na Div }); // Como pegar o Valor da Parcela ao Clicar na Div <div class="Linha row align-vertical" style="height:…
-
-1
votes2
answers148
viewsAutomatic resizing of div according to window width
My doubt can be a bit of a beast and surely many will find me half dumb, although I already have some experiences with front and end. The doubt and the following, I want to make a site that extends…
-
-1
votes1
answer36
viewsSelect with Jquery
Personal I have a json return by Jquery and wanted to load the content in a field select my javascript this way: $.ajax({ type : 'POST', url : 'Acoes.php', data: {'ACAO' : 'BUSCA_SETOR' }, dataType:…
-
-1
votes1
answer65
viewsComplete table with loop using jquery
In this table: <table> <thead> <tr> <th>marca</th> <th>ano</th> <th>cor</th> </tr> </thead> <tbody> </tbody>…
-
-1
votes2
answers581
viewsReturn True or False $.ajax(). done
Hello, Using a change of venue ajax this way, I can return true or false. /** ## AJAX ## **/ function getAccountAjax(id, metodo) { let bool; $.ajax({ type: 'GET', async: false, contentType:…
-
-1
votes1
answer140
viewsHow to block random characters in Javascript?
I have a form, and I’d like to remove the random characters. Type: aaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccc 20323092093023029302 weweiowoeiow…
-
-1
votes1
answer58
viewsClick the Actions button of each Row of the table every 2 seconds
I have a table with 4 columns, and the last one a "Send" action button, where it will trigger an email. I need to create a loop where every 2 seconds Jquery clicks the Send from a Row action. After…
-
-1
votes1
answer72
viewsOpen Page with a Key
On the page, who press key z opens my URL. I don’t know if it’s possible, but I wish I didn’t have to Alt, Ctrl and/or Shift. #teclas {display:none;} <div id='teclas'> <a accesskey='z'…
-
-1
votes1
answer140
viewsAjax error when placing on server
Good afternoon guys, I’m having a hard time, when I’m using my code in my local bank, it works normally... When I play on the server, it gives the following error: Datatables Warning: table…
-
-1
votes1
answer17
viewsHow to make Ajaxpost request after Ajaxget completed
The problem is that when I call the post it does not return either in Success, error or complete. Some sicrona definition is missing? this.funcget = function () { var paciente;…
-
-1
votes1
answer151
viewsHow to remove an element in HTML?
I need horizontally remove one DIV. The problem that is occurring is that clicking remove is being removed the entire column of DIV. HTML <div class="engloba-tudo"> <div class="produtos…
jqueryasked 5 years, 11 months ago Anderson Garden 9 -
-1
votes1
answer210
viewsScroll slider by clicking link after other plays on jQuery
I have a code that when clicking an edit button hides a form (filled) and another form appears (for editing). This code also focuses on the input it was clicked on to edit. I would like to scroll…
-
-1
votes1
answer267
viewsUse Ajax Json return in HTML
Hi... I have the following codes HTML <div class="escolha"> <h5>ESCOLHA A CIDADE</h5> <select id="selectMunic" onchange="getMunic(this);"> </select> <div…
-
-1
votes2
answers178
viewsHow to create event between sessions transition?
I own a element <a> in my .html, where I need that when there was the event of onclick in the same, would occur the transitional effect of session, that is to say: With the event onclick in…
-
-1
votes2
answers192
viewsChange HTML during AJAX request
Hello, I am trying to change a text on my web page to follow in real time some insertion in the database, I am using synchronous AJAX to make the requests, but HTML does not change. Javascript:…