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
answer3471
viewsJavascript POST Request
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.post demo</title> <script…
-
1
votes3
answers145
viewsAvoid editing in the field
I am trying to do the following: the user type his zip code, and then it is filled automatically, estado(select) cidade(select), rua(input) and bairro(input), when the user enters his zip code and…
-
1
votes1
answer131
viewsMark checkbox with returns in DIV
In this form: <input type="checkbox" value="1" data-id=1" name="status_entrega" id="status_entrega"> <div id="retorno_1" style="display:none; float:left">Atualizado</div> <input…
jqueryasked 7 years, 11 months ago Sr. André Baill 6,946 -
1
votes1
answer773
viewsPassing Correct Form Ubmit Parameters
Hello, I’m trying to pass some parameters to the controller, but I’m not getting it. The following Code has been changed to load the contents of the tab clicked and display it in an input and…
-
1
votes2
answers613
viewsHide a button until 2 input is filled
I intend to hide each of the 3 buttons until the 2 inputs that are on top of each button are filled , I had already tried and it works , but if I try to add more than once it is always visible even…
-
1
votes2
answers393
viewsMessage to the user in Label with Jquery
I’m validating the registered user’s email, and I want to display the message to him if the email already exists, so I did so: //validação de email $(function validateEmail() {…
-
1
votes3
answers79
viewsHow to define an attribute to the parent form of a given input?
I have the following form: <form id="excluir" class="form-horizontal" role="form" method="POST"> <input type="hidden" name="_token" value="s59zI8Ehg0dw2CVnmqpfGgyyuHKJDHSF"> <input…
jqueryasked 7 years, 11 months ago Fábio Jânio 3,407 -
1
votes1
answer134
viewsAutocomplete with typeahead and JSON
I have an ASP.NET MVC project and in it a script for autocomplete using typeahead with Prefetch: $(document).ready(function () { // Sonstructs the suggestion engine var ativos = new Bloodhound({…
-
1
votes1
answer4048
viewsPopulating Chart.js with AJAX request data
Hello, First I’ll give you a brief introduction to how my system works so that you understand exactly my difficulty. Maybe it gets a little big, I’m sorry. Within my system, when the user logs in, a…
-
1
votes0
answers359
viewsDelete rows from table
I have a table with a list of registered debtors I want to rule him out if he pays. With a base I managed to create the function and everything, but when I update the page, it comes back. <!--…
-
1
votes1
answer230
viewsHow to put a scroll in the tab system
I’m setting up a flap system, it’s working 100%. The problem is when I open it on a mobile screen it has to scroll in the header of the tabs, same as the Android system. Could someone help me?…
-
1
votes1
answer39
viewsHow to simulate [mouseup()] element by element using get()
I have a web application which I have elements like input. <input class="switch-input" name="0" type="checkbox" /> <input class="switch-input" name="1" type="checkbox" /> <input…
jqueryasked 7 years, 11 months ago user7331387 63 -
1
votes1
answer40
viewsHow will this if be interpreted?
I have a function that performs different actions on the page according to the callback passed to her, I am using if to verify which callback called on function('callback') but now I needed to do an…
-
1
votes1
answer50
viewsProtect script with user data?
Currently on my page I load some scripts returned by PHP as follows: $(".div").html($("<script />", { src: 'http://www.dominio.com/functions/dados.php?user='+xxxx+'&acao='+xxxx+'' }));…
-
1
votes1
answer821
viewsReturn php result to javascript
I’m making the POST request by AJAX: HTML FORM (administration.php): <form align="center" width="50" name="excluir_documento" id="excluir_documento" onClick='return confirma_excluir_documento()'…
-
1
votes1
answer542
viewsAdd one array within another
Hello, I searched how to add an array inside the other one but the result was not quite what I expected. I have the following code: else if ($_GET['type'] == "listaJogos") { //echo 'Tipo de…
-
1
votes1
answer73
viewsremote request with php jQuery-autocomplete
I’m trying to requisition remote file PHP with the plugin jQuery-autocomplete, but it’s not working. The plugin in question and this one: jQuery-autocomplete. I want to use it because it is very…
-
1
votes0
answers74
viewsConvert and edit images with jquery and php
I have a grid doubt that I can not find on the internet or in video lessons. I need a class for image upload, what I need is: When the person chooses the image, they will open a box where the person…
-
1
votes0
answers107
views -
1
votes1
answer42
viewsPhantomjs ignoring style in header
I’m capturing the position of some elements in the DOM of an html but Phantomjs is ignoring the padding applied via css. After doing the page.evaluate I capture the top/left: var res =…
-
1
votes1
answer380
viewsDisplay fixed alert independent of scroll position on page
Well I’m mounting a confirmation alert, by clicking on the link it will appear. Everything is working, but when the page and very large the alert does not appear, because it goes to the top of the…
-
1
votes2
answers548
viewsJquery Append does not work
Galera I am making a load on demand use a button that the user click on it loads the data 2 in 2, these data come from the database, but in this code I will post below does not work when I put the .…
-
1
votes2
answers94
viewsHow to delimit the area of the ". Animate()" of jQuery?
I would like to move the doll and it just stay inside the div, when I hit the line that bounds the square, it would stop and I couldn’t go beyond. $(document).ready(function(){…
-
1
votes2
answers26
viewsHide in an Actionlink, is it possible?
I’d like to depending on my condition ActionLink was visible or not. Razor: <td> @Html.ActionLink("Cadastrar site","MontarFancyCadastrarSite", "ItemOS", new {ChaveOS = Model.ChaveOS }, new {…
-
1
votes1
answer45
viewsProblem with mouse over in image
I would like to know how I can move my menu in an image I made. I wanted to put the menu on the left side for example. Here is my menu: https://gyazo.com/3cc836a7cb1b825800abe4f8b0b309e7 Here is my…
-
1
votes1
answer367
viewsCheck the existence of an element by the Value attribute?
I need to basically check if a certain div exists within a list, the structure is like this: <div class="content" id="divCheck"> <div class="filho" value="1"></div> <div…
-
1
votes1
answer159
viewsHow to pass multiple arrays to PHP page
→ $scope.items = []; → dados = $('#meu_form').serialize(); I wonder: how to send/receive/read the arrays above to a PHP page? Javascript: app = angular.module("app",[]);…
-
1
votes1
answer123
viewscall . keypress(e) only if . change(e) is OK
Hello, I need some help. I have a field input[type=text] that I have triggers on it, a trigger .change and a .keypress . However, in the .change i call a field validation function and .keypress i…
jqueryasked 7 years, 10 months ago Don't Panic 4,006 -
1
votes0
answers258
viewsTouch Event in Jquery
I’m starting in jquery and I’m having trouble touching for this function, it doesn’t work on mobile. $('#font_family').change(function() { svgCanvas.setFontFamily(this.value); });…
-
1
votes1
answer33
viewsjQuery counting automating ID’s
So, guys, I have a schematic here like FAQ that the site administrator who registers the Faqs. Each new registered question generates two new Ivs: <div>Pergunta1</div>…
-
1
votes0
answers61
viewsSkip field when selecting ajax result
I have a div that has an "input" that returns via ajax the results of the query. I need that when selecting one of the user’s results, automatically skip to the next field or if you enter also skip…
-
1
votes0
answers77
viewsGood practices with $.get from jquery
I believe it is not recommended to make one $.get within a $.get. But then what would be the best practice for this code below: var valorSalario = getSalarioAtual(location.state);…
-
1
votes1
answer1042
viewsFunction js is executed several times
Hello, I am developing a football betting app that features a table with quotation values of different game modes for each registered match. For each match I have a table with the following code:…
-
1
votes1
answer114
viewsClose menu by clicking another
I have the following menu: <div id="menu"> <img style="position: relative;right:45px;bottom:39px" src="<?= base_url('assets/img/menu-topo.png') ?>" width="340px"/> <div…
jqueryasked 7 years, 10 months ago Sr. André Baill 6,946 -
1
votes1
answer476
viewsProblems with Jquery Fullcalendar dates
I’m having trouble with the save dates at the bank. In order for me to save the date it should come like this: 2017-01-09 19:39:12 But she’s coming like this: Thu Jan 05 2017 00:00:00 GMT+0000 The…
-
1
votes2
answers308
viewsHow to store AJAX return to use as a parameter of another function
Main function, which will return the value chave = data.chave: var chave = ''; $scope.submitForm = function() { $http({ method : 'POST', url : 'validar.php', dataType: 'json', data : dados, headers…
-
1
votes2
answers319
viewsAdd title when hovering over event
I need that when passing the mouse I can see the name of the event, at the moment if the name is too big I can not see, as in the example below: I’m using the fullcalendar to manage my event…
-
1
votes2
answers2447
viewsfill in right-to-left input
I need two input that I have in an app are filled from right to left... one of the inputs is real value (R$) the other is value in milliliter (ml), I am using a jquery mask (a Maskmoney works right…
-
1
votes1
answer15751
viewsCheck if radio button is selected
I’m unable to verify the following condition: $("#calculo").click(function() { if ($("#opcao2").cheked()) { $("#segundoConteudo").css("display", "none") } }) .labelFake { font-weight: bold; }…
-
1
votes1
answer1308
viewsProblems with Jquery load and append loading another php page
If anyone can help me, I have the following problem. By clicking on the menu that is the reference id for my jquery it loads the page only with several clicks in the menu and when it appears I click…
-
1
votes2
answers149
viewsPerform calculations between inputs
I’m using a plugin that when I click on the button + it multiplies the value. It works perfectly but the calculation is only done inside the <span id="price" class="amount"></span> and…
javascript jquery angularjs vue.js javascript-eventsasked 7 years, 10 months ago Shaolin Fantastic 546 -
1
votes1
answer131
viewsVariable does not have its value after done or fail in ajax
I created a function to return true or false when ajax. At the beginning of the function I declared a "r" variable to receive true if it succeeds or false in case of failure, but the variable does…
-
1
votes2
answers1539
viewsHow to add Jquery to a wordpress page?
$(document).ready(function(){ $('.data-encerramento').each(function (){ var $this = $(this); var timestamp = $this.html(); var a = new Date( timestamp * 1000); var months =…
-
1
votes2
answers411
viewsCenter div inside scroll
I have a father div that has the scroll enabled and a width limit, below it I have another div with content. My wish is to center this content on the parent div so that the content is centralized,…
-
1
votes1
answer185
viewsENTER key save table instead of spacing
I have the following table to let edit directly on the grid: Her codes: Mysql table CREATE TABLE IF NOT EXISTS `php_interview_questions` ( `id` int(8) NOT NULL, `question` text NOT NULL, `answer`…
-
1
votes2
answers732
viewsConflicts with jquery in the Adminlte template
Colleagues. I’m using the Adminlte template for a project, but on one of the pages I want to put an autocomplete API for the searches. The problem is that when I put this API that has a jquery…
jqueryasked 7 years, 10 months ago user24136 -
1
votes1
answer208
viewsAutocomplete UI bring images
Colleagues. I am using the jquery UI autocomplete which is working correctly, but I would like the results, also bring this code: <i class="fa fa-user" aria-hidden="true"></i> When I put…
jqueryasked 7 years, 10 months ago user24136 -
1
votes3
answers218
viewsProblem with JS/Jquery/JSON/AJAX
I’m having some problems with JSON in my application and wanted to see if you can help me, please. The situation is as follows: I have a method in my controller that searches some items:…
-
1
votes2
answers202
viewsEvent conflict with jquery
I have the following code: $('#abre-busca').click(function(event){ event.preventDefault(); $('#menu-principal-sub li').css({'opacity':0}); setTimeout(function(){ $('#menu-principal-sub…
-
1
votes1
answer480
viewsChange fullcalendar link color
Colleagues. I’m using Fullcalendar for a client application, but I came across a challenge. In the image below (where it is marked with a yellow circle), when you have more than one event on the…