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
-
3
votes2
answers539
viewsKeep script running
I wanted to know if there is a way to keep a php script running internally on the server even with the browser turned off. I’m not talking about scheduling tasks, I’m talking about keeping a process…
-
3
votes1
answer58
viewsI can’t get value from date-Object
There is the following problem I have several inputs listed with the same css class, but I need to take a data-attribute from each one by clicking on the respective input to get its attribute value:…
-
3
votes2
answers208
viewsMark Selected in option that has the same id brought in array
I have a select $(".methods option") that has 3 options with payment methods and each option has a value that has an ID (in case 1, 2 and 3 respectively). I need to mark as Selected the option that…
-
3
votes1
answer114
viewsVariable from jQuery to URL
The thing is, I have the following code: $('body').on("click", ".delete", function() { $('#1').val($(this).parents('tr').find('td').eq(0).text()); }); That goes to get the id of a row of a…
-
3
votes1
answer56
viewsUser see current version of Jquery and CSS without cache
Every time I update the CSS and JQUERY from a website, I need to keep asking the customer to open the site in an anonymous window. Because his browser saves the old files and he can’t see the…
-
3
votes3
answers381
viewsUncheck all checkboxes by going back to the previous page
I am developing a software and I noticed a flaw: when the user returns to the previous page, the checkboxes are still marked. How I clear them all?…
-
3
votes1
answer8559
viewsWhat is the ajax error function for?
I have some doubts, what is the use of ajax error? $.ajax({ url: 'ws/controller/sys_controller.php?id=4', type: 'post', data: dados, success: function (data) { /*$("#loading").hide();…
-
3
votes3
answers566
viewsshow all options of <select> without scroll bar
I have a select that brings information from a JS, but this select is forming scroll bar and the options are not many and there is room for more options to be shown but regardless of what I try I’m…
-
3
votes2
answers513
viewsJavascript does not pick up pages added later
I’m in trouble, which begs a big question. I’m developing a website that has a standard structure, which makes GET calls on Jquery to search for new HTML pages for certain parts of the page.…
-
3
votes1
answer1288
viewsauto-fill input with jquery php
I would like to convert this code into jquery. To say. Instead of appearing in iframe, I would like it to be a single page normally, and the insertion is refreshless. $.post("resultado.php",…
-
3
votes1
answer780
viewsfind a form field with jquery
I have a select field in html, it is hidden along with a div and disabled. From the selection of a value (select), it should appear on the screen and be enabled. I am unable to make the field select…
-
3
votes1
answer470
viewsHow to calculate and display the sum of dates instantly?
Expensive, I have a situation where I need to create a lease. In the fields, the person who is entering with the data has the options: *months / *start date / *end date I would like to know how to…
-
3
votes0
answers59
viewsImage Dimension Validation with jQuery Validation
Even selecting an image in the correct dimensions is giving me error warning that I am not selecting an image in the right dimensions. How do I return this function to not enter error ? jQuery…
jqueryasked 8 years, 8 months ago Diego Souza 16,524 -
3
votes2
answers336
viewsContact form 7 in custom post
I have contact forms made with the plugin contact form 7 within my site, only that contact forms only work on pages, within posts do not work. On the contacts page it sends correctly and shows the…
-
3
votes2
answers152
viewsSettimeout and server traffic
I have a question. I am implementing the setTimeOut() in a comments application, where every 3 seconds the div is updated so that new comments appear automatically without the need to refresh. Is…
-
3
votes3
answers1392
viewsGrab content from div, a, select
I have a problem implementing this simulation, is the following, the user chooses the package by clicking on one of these boxes (monthly, quarterly, semi-annual or annual) then choose in select the…
-
3
votes0
answers518
viewsJquery validate, some CPF numbers are not being accepted
I am using Jquery validate + a "add-on" code for CPF validation, but some CPF’s are not being accepted, I have tested the numbers in other systems and it worked, but in my system is not rolling.…
-
3
votes1
answer4285
viewspass javascript variable to catch with php post
Good afternoon, I found numerous ways to pass javascript to php but no way worked. thought in a way but do not know how to effect, saw that with ajax would be the only way I think, what I thought…
-
3
votes2
answers1623
viewsPicking rows from a table by a value with Jquery
I have a table, with a select, in each row, and by clicking a button I want to get all the items in the table where the select option be of value. <table id="myTable"> <span…
-
3
votes3
answers1524
viewsIf with 3 conditions and at least 2 true?
Suppose I have the following if if(a || b || c == true) In this case, just one of the values is true to activate the condition, but I would like the condition to activate only when at least 2 of the…
-
3
votes2
answers4351
viewsDoubt how to format value using Chart JS chart
Guys I’m using a plugin for Jquery called Chart JS. Good and very simple to work with the plugin, the problem is that I report values in the American standard (33.33) and I need the graph to display…
-
3
votes1
answer773
viewsBrowser message after AJAX request
I have an ajax request responsible for sending a file to Servlet, it is performing the process correctly. But when I update the page the following message is displayed by the browser (When I give a…
-
3
votes2
answers70
viewsSet click event to an element that was inserted via AJAX, after page loading
I am developing an instant search system with jQuery, Ajax and PHP. I created a navigation system by the arrow keys of the keyboard in the options resulting from the search. It is working smoothly.…
-
3
votes2
answers72
viewsHow to trigger functions outside the scope of the Plugin?
I am making a plugin that at a certain stage performs a function. Example: <button class="btn btn-warning btn-lg" id="act"> Action </button> (function($) { $.fn.foo = function(options) {…
-
3
votes1
answer1246
viewsPick selection event + selection movement - Jquery
I would like to know how to catch the event with Jquery text selection + drag. An example of what I am saying, is to select a text and with the left mouse button pressed, move the text sideways. How…
-
3
votes2
answers1392
viewsViacep does not fill in user address data (Website on the .NET platform)
I’m developing a web application on the platform. NET and I thought of making the user type the zip code of his address and automatically he would fill the text boxes with data of street,…
-
3
votes2
answers498
viewsAdd text to input (virtual keyboard)
I wrote the following script: <input type="password" class="email password_action" placeholder="Account Password" id="user_password" name="user_password" required> <? for($i=0; $i<=9;…
jqueryasked 8 years, 6 months ago Sr. André Baill 6,946 -
3
votes2
answers699
viewsPosition div or button inside a specific point of an image
I need to mount a kind of map, where the user clicks on a button that is in the x,y coordinate of an image and a modal opens. I can’t use the background-image for this, so I put the image with…
-
3
votes2
answers1774
viewsCapture values after an input checkbox
Good morning, I have a 'Care' form where there is a checkbox for each service. Currently I can get the id of each checkbox selected, put in an array and print this array, but that’s not my goal. I…
-
3
votes1
answer308
viewsBrowser talk to user press key
I’m doing a project aimed at blind people, I wanted to know if there is any way to make the browser speak by voice "Hit the ENTER key to talk", I’m using Speechrecognition to recognize the talk of…
-
3
votes1
answer489
viewsHow to send several variables to another page and return in a div (Jquery)?
I’m trying to send data from a form to another page, and bring from it a chart in a div with id="return", which is below the form. The form has the code, data1, data2 and store, but it seems that…
-
3
votes2
answers3686
viewsDownload file via Ajax
In my Asp.Net MVC 4 project, I have a View with a button and the following script: <input type="button" value="Teste" id="baixarArquivo" /> <script> (function () {…
-
3
votes3
answers1052
viewsImage with scroll vertically and height 100%
I have the following structure: <div class="bg"> <img src="view/img/planta-supermercado.png" id="bg"> <div class="bg-scroll" id="bg-scroll"> <img…
-
3
votes1
answer225
viewsDelegation of events to dynamically generated elements
I will try to be more specific. I have a list <ul>which is populated via jQuery: var $imovel = $("#lista-resultados-pesquisa"); $.ajax({ type: 'GET', url: 'imovel.json', success:…
-
3
votes2
answers716
viewsDynamic ID with Jquery
I have a function that creates a span with id, but I need that id to be generated dynamically example id="span1" /id="span2", as I do this? $("#lista").append("<span id='span'><br> " +…
-
3
votes3
answers5520
viewsHow to install Jquery in Angular?
What is the correct way to install jquery in an angular project 2+? Bootstrap: npm install --save jquery@latest Only it is not available in node_modules for me to take the path and put in…
-
3
votes2
answers577
viewsHow does Alert show when marking checkbox in a table?
I have a table: The information shown is searched in the bank, and on the column side (in this example) - Salary - you will have a column called Lock / Unlock - where I can block that information in…
-
3
votes1
answer3294
views -
3
votes1
answer911
viewsCapture and change the value of a column of your respective row in a table with numerous rows
The future table data will be shown through the code below: <?php while($linhaAssociativa = mysqli_fetch_assoc($query)) { ?> <tr> <td class="cmenu2"><?php echo…
-
3
votes3
answers58
viewsIs it possible to use Jquery to animate Background-color?
I recently created a Javascript script to make a color exchange loop I used add class and remove class, but when I went to practice in jQuery it didn’t work. This is my code:…
-
3
votes1
answer139
viewsProblem with mask in form
I’m using the plugin Masked Input Digitalbrush to format my phone field in the form, I tried this way and it didn’t work, someone can help me? <head> <script…
-
3
votes1
answer3256
viewsFunction . click being executed twice
I have a $(".btn-buy") function. click() which, when I click, runs twice. I can’t solve the problem. I’ve already searched the whole code and it doesn’t have duplicity. Which could be? Function:…
-
3
votes1
answer248
viewsChange HREF of a link if the url does not meet some requirements
I have a question. I need to force page 1 value from a page to a specific URL. I couldn’t figure out how to fix the code of the plugin I’m using, so I decided to do a "gambiarra" so I could put the…
-
3
votes1
answer302
viewsTaking out an element that is inside an iframe
I needed to take a title that is inside an iframe, I did it with jquery but it takes too long to disappear or even not disappear. I did so with jquery: $(document).ready(function () {…
-
3
votes2
answers179
viewsHow do I redirect a page by clicking an option from a select by google Chrome?
I am using this jquery already tried to use change also but does not run <script> $(document).ready(function(){ $("#select-native-fc").on('click', function(){ if($("#select-native-fc").val()…
-
3
votes2
answers390
viewsFunction returns a string instead of a prefix
The code below returns a promise: function getDealerships(region) { return $.ajax({ method: "GET", url: "/api/v1/dealerships?region=" + region }); } So I can wait for the server reset and process…
-
3
votes2
answers642
viewsAdd CSS attribute when input is selected via Jquery
I’m Making an answer validation application for a particular question, I need that when the <input type="checkbox"> is selected if an attribute is addedbox-shadow to <textarea> of reply.…
-
3
votes2
answers57
viewsCallable in Javascript
I have a list of id’s on buttons: <button id="grafico01">Pontuação por MARCAS</button> <button id="grafico02">Pontuação por EQUIPAMENTOS</button> <button…
-
3
votes2
answers579
viewsReceive real time variable ajax
Well I’m making a system, and I need to receive a php page variable every time, so I can work on it on my index.php page. A friend of mine who understands more of ajax than I gave me the following…
-
3
votes2
answers112
viewswindow.innerWidth does not work on Windows Phone
I got a problem: On the page http://www.magicforbaby.com.br/, has a banner where I can’t set its size (from div). But as it takes all 100% of the screen, I took window.innerWidth from the browser…