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
answer138
viewsShow Pop-up when user approaches browser address bar
I own a Pop-up that opens whenever the site opens. However, I would like to change. I want the Pop-up to open whenever the user approaches the mouse cursor to the browser address bar. if…
jqueryasked 7 years, 1 month ago Felipe Viero Goulart 3,693 -
1
votes1
answer453
viewsManipulate list element with Jquery
I would like a tip to make sure that when clicking on the list, it waves the correct question and nods the wrong one, or just the right one if the person got it right, <div class="container">…
-
1
votes1
answer1098
viewsjQuery does not work on Electron App
I’m creating an app Electron just study, only that I’m finding a problem. I created a page html simple, using the framework Bootstrap 4.0, in it I put only one menu. index.html <nav class="navbar…
-
1
votes0
answers242
viewsJquery: Catch height() or width() does not work with many elements
I have a catalog that displays more than 400 products on the same page (it has to be like this) with two arrows showing the dimension (height and width) that takes the measurements of the image and…
-
1
votes1
answer526
viewsPaging with Jquery
I searched some sites and here in the stack looking for how to create a pagination script with the following features: The elements are collected in the HTML I can use the function at any time and…
-
1
votes1
answer272
viewsColorize field select option Chosen
I have a select option field and would like the user to click submit, the system color the field When inspecting the element with Chrome I realized that Chosen put a style display: None and if you…
-
1
votes1
answer573
viewsFind element to remove via jQuery
I have a routine in JS which is as follows: $('body').on('click', 'a.remover', function(e) { e.preventDefault(); $(this).closest('.info').html("<p>Escolha ao…
-
1
votes1
answer1289
viewsAccess variable in and out of a javascript function?
I am trying to update some questions on a page, going through an _for with the number of steps equal to the total of questions, to inject in each passage a question via $.post(), and wait for the…
-
1
votes1
answer130
viewsHiddenfor - Submit loses value the first time
Follows code: Index: @{ ViewBag.Title = "Home Page"; } <div class="modal fade" id="minhaModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-lg"…
-
1
votes1
answer920
viewsCookies with Curl help
I need to access a certain URL and load the file 'cookies.txt' the problem is the following I access the URL normally plus Cookies.txt does not load... I think the problem is here in this part…
-
1
votes0
answers180
viewsJquery ajax load page in infinite loop
I have a button on a page that when clicking it performs the following code: Note: Whenever I click on this button it reloads a php page with html data, the jquery scripts. But there comes a point q…
jqueryasked 7 years, 1 month ago Carlos Lopes 185 -
1
votes1
answer217
viewsHow to organize pages with a table in Jquery
I have the following each that returns all customer records within a table, and that works perfectly: $.each(data, function(key,item) { id_cliente = item.id; nome_cliente = item.nome;…
-
1
votes1
answer32
viewsResult after update
Hello I would like after an execution in the database return me a value 1, for example I have the function in php: function registrar_pagamento( $pago, $registro ){ require_once…
-
1
votes0
answers54
viewsBlock Maps External Query Api
In this code below I perform a query at the address and it returns me some data so far everything ok. What I wanted to know is ? If there’s a way, if a customer enters an address in the United…
javascript jquery ajax google-maps google-maps-api-3asked 7 years, 1 month ago Fabio Henrique 2,156 -
1
votes0
answers344
viewsSend selected data in an External Json list to email (Fipe Table Query)
$(document).ready(function() { var urlBase = "http://fipeapi.appspot.com/api/1/carros/"; $.getJSON(urlBase + "marcas.json", function(data) { var items = ["<option value=\"\">ESCOLHA UMA…
-
1
votes0
answers276
viewsHow to debug an ajax request for a route?
I am making an AJAX request on a route, using the Aravel, as follows: $.ajax( { url: "../controle/pendentes/concluirVarias", type: "POST", data: { ids: arrayIds , _token: '{!! csrf_token() !!}' },…
-
1
votes1
answer367
viewsHow to check whether or not there is a rel=""
I’m mounting a function for wordpress, in which one can navigate between the posts through the Keyboard. With difficulties, I managed to create the following function: <script>…
-
1
votes1
answer76
viewsError in SCROLL function inside Onclick
Good afternoon Guys, a week or so a customer came complaining that the link from his site was not working and I could not understand why, because the site was delivered working, it was a link that…
-
1
votes0
answers70
viewsCode optimization
I have a UL automatically generated via a SELECT OPTION. In the architecture I created, I have a LABEL who gets the first OPTION of SELECT. This LABEL will also be responsible for receiving the…
-
1
votes1
answer365
viewsFunction within function
These days, I asked a question here at Sopt and the boy answered me with a code, creating a function within another function, something simple, but I didn’t use it, and I started to implement.…
-
1
votes1
answer1282
viewsFilter an html table with a button
I have an HTML table for call management <table class="table"> <thead> <tr> <th>Protocolo</th> <th>Problema</th> <th>Situação</th>…
-
1
votes3
answers285
viewsGive Hide/Show and show only contents of the clicked item
I want to show/hide the div by clicking on it and hide by clicking on another item, I am only able to hide by clicking on another item, by clicking on it I am not able to hide. Example of how the…
-
1
votes1
answer2487
viewsHow to reset an input type="file"?
I have the following code: $(function() { // Multiple images preview in browser var imagesPreview = function(input, placeToInsertImagePreview) { if (input.files) { var filesAmount =…
-
1
votes2
answers117
viewsCheck and uncheck Checkbox items
I have the following form: <div class="dia" id="dia" data-id="1"><input id="1" name="diasemana[]" type="checkbox" class="dias_semana" value="1"><label for="1">…
jqueryasked 7 years, 1 month ago Sr. André Baill 6,946 -
1
votes1
answer351
viewsJquery Form Validation Position of the error div in select fields
To change the position of the error text in fields Select2. is appearing above the field, I want it to appear below! Any hint? <!-- /field --> <div class="col-md-3"> <div…
-
1
votes2
answers703
viewsCalling Jquery function in an Angular controller
I have a file with functions jquery, and I need some functions that are on it to use within controllers at the angle, but always have JS error that functions are not defined. jquery…
-
1
votes1
answer302
viewsHow to use jquery plugin in vuejs2
I am faced with difficulty when setting settings for the component that uses jquery in vuejs2. <div id="app"> <date-picker @update-date="updateDate" timepicker= "false"…
-
1
votes1
answer50
viewsDivs fade into a loop?
I have the following code I’d like you to do fadeIn and fadeOut after 3 seconds. I thought to use setInterval to loop and then use a setTimeout to give the time that each div was visible. Is there…
-
1
votes3
answers203
viewsCombine arrays
Well, I’ll try to explain a little better as you requested. I own 3 arrays simple, I’m using an example with 3 arrays, but actually the number of arrays is not defined as they are mounted from…
-
1
votes1
answer837
viewsDiv fixed to a certain point on the page
I’m developing a website where I have a fixed div, but when I get to a certain point, it accompanies the scroll. An example is the site https://rockcontent.com/ From what I saw, it is a script that…
-
1
votes4
answers562
viewsDisplay the output of a JS variable through Jquery in an html input
Good afternoon! I’m playing a simple game of joking I created three inputs, one to enter the value user wants and another to show what was selected by the program and finally one to show the result.…
-
1
votes3
answers3345
viewsGo through jquery inputs and check if you have a certain class in input
I’m picking up the inputs with the code var itensTabelaPresentation = ('#tabelaPresentarion > li'); and would like to walk through them and go checking if they have certain class, how do I…
-
1
votes0
answers245
viewstransition and effect on images with display: block a slideshow
I have a slideshow that I’m developing. As images, are in display:none and when click in the arrows, I make display: block in the image that will appear and display: none in the other. I’d like to…
-
1
votes1
answer334
viewsAjax does not send the data to another php page
I am unable to send the value of an input to another php page. On my products.php page I do a database search and upload the page show_itemswithin a div. When loading the data into this div, I mount…
-
1
votes1
answer634
viewsHow to recognize button/element click inside a modal window?
How to recognize button/element click inside a modal window? I tried the following, without success: $("#modalEscolha").bind('click', function () { if ($("#escolherComp").data('clicked')) {…
-
1
votes1
answer25
viewsopening ul menu by disabling the button
have a select made with a ul and I have the following problem: When I open the select, he goes over 2 botões. And after that, both botões sane desabilitados. What must be happening?…
jqueryasked 7 years, 1 month ago Carlos Rocha 1 -
1
votes0
answers192
viewsMy table does not show the data even though the code is equal
I cannot understand why I do not present records in my table when I change the reference to dataTable2.js, although the code is the same as the example showing the data. If you can help me with this…
-
1
votes1
answer136
viewsLogic Promisses or callback with Sweetalert and Vuejs
I’m trying to make a callback to perform some functions, I don’t know if I should use Promisses, callbacks or something more advanced. This problem is more about logic I own a Mixin that triggers…
-
1
votes3
answers66
viewsI calculate with Javascript
I need some help from you. I have two numeric fields in my system as shown in the photo below. The field that has a red line around it, it will have to make a calculation about the top field, as you…
-
1
votes3
answers1086
viewsStoring an attribute’s value in a variable in jquery
I have this following menu: <li><a id="#nav" href="#"><i class="a glyphicon glyphicon-home"> </i><span>Inicial</span></a> </li> <li><a…
-
1
votes1
answer43
viewsIs it possible to monitor all of the page’s Responses and Headers to use as a function trigger?
I have a script that needs to be executed only after the return of a page request, because the request returns HTML content, and the function I want to execute soon after, implements that received…
-
1
votes2
answers655
viewsValidation of fields from Razor forms
I’m using MVC5 Razor to create my forms, now I have a question for field validations of that form; Example: @Html.LabelFor(m => m.Nome, "Nome:") @Html.DropDownListFor(m => m.Nome, "Nenhum" ,…
-
1
votes1
answer32
viewsPage Loading Can’t Work
Good morning, I’m trying to make an animated page load for my page but jquery is not able to hide the div that contains the animation HTML <div class="loading" id="background"> <div…
-
1
votes1
answer1655
viewsUncaught Typeerror: Cannot read Property 'NOME' of Undefined
I got a problem that’s killing me... I’m taking an API and putting it in a table there in the html, I made the Function to mount the td and everything, but when it arrives to put the API data in the…
-
1
votes1
answer91
viewsCollapse bootstrap opens all tabs at once
<div class="taskList"> <div class="taskToDo clearfix data-toggle="collapse"> <span class="col-sm-8 taskTitle"> <span class="checkTask"><i class="fa fa-check-circle-o"…
-
1
votes1
answer110
viewsLoad page inside a div with Ajax
Good afternoon! I’m trying to use Ajax to load a page inside a div I have, but it’s giving error 403 (Forbidden). In case I can’t do it? There’s no way I could do it any other way? NOTE: The page I…
-
1
votes0
answers51
viewsIs this a good way to instantiate a modal without leaving traces in html?
The initial phase of the project I’m working on is almost over, and I’m adjusting things done in a way not very well done (gambiarras). One of those things was that I left two modal elements of…
-
1
votes2
answers658
viewsCheck return ajax, works only the first time
Good morning friends, I have this code: $(document).ready(function(){ $('button').on('click',function(e){ e.preventDefault(); var codigo = $(this).attr('id'); $.ajax({ type: 'post', url: '<?=…
-
1
votes1
answer119
viewsJavascript array in dates
I’m getting data from an API and I put it inside a table. The following are the codes I used to pull the api and put inside the table var botaoAdicionar = document.querySelector("#buscar-viagem");…
-
1
votes3
answers227
viewscss dynamic change via jQuery Is it possible?
I have the following structure: var prop = new Array(); prop[0] = "margin : auto"; prop[1] = "padding : 5px"; prop[2] = "border : none"; ... $(elemento).css({ for(i=0; i< prop; i++) { /*Aqui vão…