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
votes2
answers852
viewsClose sweetalert2 when finding the data
I wish that when finding the data the sweetalert2 closed the modal. But it returns nothing in . then Here is my code: swal({ title: 'Auto close alert!', html: 'I will close in…
-
0
votes1
answer27
viewsDoubt with validation of jquery content;
I have a javascript that should run only when the content value of Edit is different from null or empty, but the same is always running. <script type="text/javascript"> function…
-
0
votes1
answer49
viewsHow to add a class in the form after page return
I have an input of type Hidden that takes the name of the menu that was selected that was returning from the application, it can receive (tempos, shutdown, values) After the return of the post, I…
-
0
votes1
answer68
viewsFixed jquery scroll at top by clicking on a div #
Next people I have a problem because when I clicked on a menu anchored by a #id it did not stay with the scroll at the top and so the content was cut because now I put this function and it worked…
-
0
votes2
answers941
viewsGrab id from clicked button when clicking another button
I need to make sure that when the user clicks on the options button, it keeps this id value and when you click on another "confirm" button it shows the id of the first button clicked. I tried to do…
-
0
votes1
answer58
viewsJquery after Reload
I wonder if there’s any way to do it, because I have a function that when I click on a menu button it captures via jquery the id of the page but if example I am on the START page that has no id and…
-
0
votes1
answer161
viewsValidate 2 or more emails in an input
I have a registration that validates the email event focusout in Input. That validation works perfectly. Now the need has arisen to validate multiple emails within the same Input, separating by ";"…
-
0
votes0
answers16
viewsLoader bug jquery
I’m having a problem in my jquery jQuery: /Pre-Loader jQuery(window).load(function () { $('.site').hide(1); $('.id-sub').hide(); $("#loading").fadeOut(2000,function(){ $('.site').show("slow");…
-
0
votes1
answer33
viewsHow do you save the contents of a Nav-tabs using localstore?
I have an example here: When I submit the form, I want to save the tab ID and ID of the div that is currently selected to not need to bring it in the Hidden type input <script…
-
0
votes0
answers201
viewsHow to open the webcam on a local machine for a php page on the server?
People I’m trying to create a page in Chrome that opens the webcam I’m using the webcam.js library in IE11 the code works but in Chrome and firefox does not appear the message Movie is not Loaded…
-
0
votes1
answer55
viewsShow div and hide what was or was previously opened by clicking on <a> button
@foreach($user->endereco as $endereco) <table class="table"> <thead class="thead-light"> <tr> <th scope="row">Endereço: {{ $endereco->endereco }}</th> <th…
-
0
votes3
answers7056
viewsChange background-color when click
I need the button to change color every time clicked, I used Focus but does not bring me the expected result, because after the button is clicked, the user needs to click another corner, so the…
-
0
votes1
answer64
viewsHow to show the Controller output in View c#
I would like how I can show my result that is in the controller method in the View. EX: Controller: public class SMSTarifado { public int QtdTarifados { get; set; } public int QtdEnviados { get;…
-
0
votes1
answer393
viewsSelect2 + Jquery - Autocomplete Problem
I managed to make the Select2 Plugin work, but the autocomplete does not work. $(function () { $("#disciplina").select2({ placeholder: "Disciplina", minimumInputLength: 0, ajax:{ url: "busca.asp",…
-
0
votes1
answer122
viewsScroll Jquery html css
I need to make a scroll change menu as it descends identical to this site http://www.flatslife.com/ could help me where I might be finding? <div id="cssmenu"…
-
0
votes1
answer105
viewsJoomla 3.8 and Jquery - Does not work
Hello! I searched everything that was singing and couldn’t find a step-by-step how to use Jquery in Joomla 3.8. I am creating a module and I would like to use Jquery. I made it here: 1 - download…
-
0
votes0
answers1057
viewsPassing data to a modal with PHP and Ajax
I am creating a system and at a certain moment the user can register the measurements of a person. For this, I would like to redeem in the table of people the ID and the Name, so that they are…
-
0
votes0
answers80
viewsCalculate value between <h> using jquery
Good morning, I have the following code: <section id="four" class="wrapper special"> <div class="inner"> <div class="features" id="Comprando"> <div class="feature">…
-
0
votes1
answer63
viewsEmpty and Append return no value
I’m having the problem that my Empty(). append(); does not return any php values in div and I can’t insert anything into it, even within html itself. It’s like she’s been blacking out, but for a…
-
0
votes0
answers312
viewsslide arrow is not showing
I have a problem, I took a code from a video lesson and a jquery too, I’m using both, I put the codes exactly as they were in the video, but even so my arrow doesn’t appear, it’s like an A on it, I…
-
0
votes1
answer99
viewsHelp with Jquery $ is not a Function
My file . js $(document).ready(function () { $("#uf").on("change", function () { atualizaProfissional(); }); $("#botao").on("click", function(){ s = $("#municipio").val(); if (s == 1){…
-
0
votes1
answer52
viewsMy jquery function stops working when I change route
I have a jquery function responsible for cutting a photo when a photo upload takes place: document.addEventListener('DOMContentLoaded', function() { function readImage() { if (this.files &&…
-
0
votes0
answers161
viewsDoubt Consume Web Service in Wordpress
I have a site in wordpress, made by myself, is called School Circuit, in it I need to consume the data of a webservice for management of championships, teams, games, students, etc... The company…
-
0
votes0
answers24
viewsDate sorting with Jquery
Hello, I need to sort my news so that the last post is at the top, the difficulty I’m having is where I should organize my array... This issue is different from sorting by date pq HTML is not…
-
0
votes1
answer97
viewsTurn the results of an HTML form into HASH with Jquery and Javascript
I’m trying to see the credit card hash informed to test with Moip, but my Javascript does not show me on screen, returns me [Object, Object], I would like to see the full hash to pass to Moip. PS:…
-
0
votes1
answer80
viewsHow to create a . click() limiter in JS?
I’m trying to create a JS calendar. First I made a <table> that will fill the <td> according to the days, leaving all available to click and select a particular day. The user selects a…
-
0
votes2
answers48
viewsWorking with Ajax
In a field Blur event, I give a select in my bank and bring a value and fill in my html. My question is how I get more than one result or a specific result on the ajax date. The code below works,…
-
0
votes0
answers71
viewsDOM slow to respond
Next, I have an application that within the . NET charging is fast, it takes 1,423s for the method to respond, only when it goes to the VIEW it is taking longer... It’s like something is holding the…
-
0
votes1
answer32
viewsHow to validate the return of a value using Jquery in a component that does not support Clientidmode="Static" in Asp.net?
When using Aspnet Webform, ID components are changed dynamically, but this component cannot use Clientidmode="Static" to keep the same ID. example: <asp:HiddenField runat="server"…
-
0
votes2
answers273
viewsError Calculation in Javascript
in a calculation done in Java I am having the following problem, I have tried to solve several ways without success, I need to do a simple mathematical operation and in javascript gives a difference…
-
0
votes2
answers39
viewsMouse Event on Two Screens
I have a screen with red background, when clicking on it opens a new with blue background. This blue background screen should trigger a Alert when you click on it, but it’s not happening. Could…
-
0
votes1
answer160
viewsDoubt Compare Values Returned from JSON Webservice
I have a site in Wordpress and in it I am consuming a Web Service, I created a function to filter the championships based on some information: Sex : M Modality : 2 Category : 4 If all are true, it…
-
0
votes0
answers194
viewsAjax Request Error and jQuery Versions
I’m having a problem understanding and solving a problem with a request Ajax that I need to do. Below is a list of the sequence of the subject that I will say: Explain what I need; Explain what I…
-
0
votes1
answer57
viewsJquery scroll() IE compatibility
Hey, guys, what’s up? Guys, I have a little problem, I have a Jquery scroll() event, only I have a compatibility problem with Microsoft Edge (IE), follow the code: $(window).scroll(function(){ var…
-
0
votes0
answers34
viewsHow to Catch Device Serial in PHONEGAP?
I need to get a phonegap. At the end of the URL I would like to add the device ID to see if it is already registered or not in the database. For sending I use the Ajax function of Jquery. Below…
-
0
votes1
answer41
viewsHelp using setItem and getItem from localStorage
I’m trying to save an answer, but I’m not getting it every time I refresh the previous answer back. Follow what I’m trying to implement: <!DOCTYPE html> <html lang="pt-BR"> <head>…
-
0
votes1
answer22
viewsDoubt print more than one item in return JSON web service
I have a site in Wordpress and in it I am consuming a Web Service, I created a function to filter the championships based on some information, If all are true, it returns the name of the respective…
-
0
votes0
answers89
viewsHow do I make a slideshow with Divs?
currently my carousel has 3 Divs, and I would like the Divs to move from 1 to 2 and from 2 to 3 and from 3 to 1 with a 2-second timer, how do I do that? my code is like this: <div…
-
0
votes0
answers59
viewsUpload files in PHP
I am not able to upload PPTX files, others go up normally. The files are sent via ajax. The error happens when moving the file to the folder ! var form = $('#fileUploadForm'+idbtn[1])[0]; // Create…
-
0
votes0
answers34
viewsProblem with ajax request
I have a problem with my ajax, I need to check on another page if a time is available. I select the consultant field and type the day, after that by clicking the button, it should bring a return…
-
0
votes1
answer72
viewsStart Jquery function when a div receives a class
I have a div class="modal-load" with a counter uploader that will be shown when the user finalizes a payment, but I need that counter to start only when the class is added .active in it. For this, I…
-
0
votes0
answers294
viewsUpdate only div with ajax
I have an ajax code that sorts items from my table, what I need is for it to refresh only in the div ID Imagery Name Slug Order Situation Action <tbody> <?php foreach ($list as $row) {…
-
0
votes0
answers61
viewsError while passing parameter
I will try to give you as much detail as I can, but I don’t even know how to make a mistake in this situation. I am sending data via POST with Ajax, but one of the fields does not pass value to PHP.…
-
0
votes3
answers49
viewsResume counting if you exceed options
This question will probably be answered in less than 5 minutes of so easy, but I’m cracking my head... I’m going to simplify a lot here, but I think I can understand: I create elements by…
-
0
votes1
answer60
viewsClick and Toggle with jquery, 1 click delay
I have a small problem that I don’t know how to solve, I have a div, that when I click on it it adds something with load(), and keeps alternating this event with toggle(), to add and remove also,…
-
0
votes1
answer67
viewsJquery - use "focusIn" as trigger to add a class
Opa Galera! all right? I am making a form that should be divided into two or more steps... I had the idea of using a class ". ", in the second "div" and leave it as "display: None;" in css. then I…
-
0
votes1
answer880
viewsCopy fields from a form and paste into another form from different websites
I am developing a particular system, using PHP, JQUERY, MYSQL, and need to automate a routine: I have a registration form on my web system and I need some tool or app from google Chrome that allows…
php javascript jquery google-chrome-extension appletasked 6 years, 8 months ago Julienn Christoffer Silva 1 -
0
votes1
answer411
viewsEnable jQuery Validate (plugin) with the ajax response
I always found interesting this plugin, as it leaves the form simple with subtle messages to the visitor. I decided to implement and falls into the following dilemma: How do I get back my AJAX to…
-
0
votes1
answer1047
viewsAjax request to an API
I am trying to request a third party API through the following code: <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script> <script> $(function(){…
-
0
votes0
answers36
viewscustomize Validator.js when leaving the field
Good afternoon, you guys I am working with Validator.js (bootstrap library) to validate fields of a form, I have a custom email field: $('#userForm').validator({ custom: { validemail: function($el)…