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
answer781
viewsChange HTML code via jQuery
I’m trying to enter the following code on this page to be able to change the text that appears when the customer subscribes to the modal newsletter, which appears when the customer is about to leave…
-
1
votes2
answers2122
viewsAccess-Control-Allow-Origin jQuery Ajax
I am trying to access the mail api to calculate freight and get the following msg: Failed to load http://ws.correios.com.br/calculador/CalcPrecoPrazo.asmx/CalcPrecoPrazo: No…
-
1
votes1
answer1198
viewsChange route (road) color from google maps
Someone can help me how you change that blue color of the road when you set a course.. I already have the style all ready just don’t know the variable that applies to that part of the map.. Obg…
-
1
votes2
answers311
viewsA jQuery Get() inside another jQuery get()
I need to run a jQuery Get() inside another, but I’m not getting anywhere, just ignore the second Get() without returning what I need (the username of the second get()):…
-
1
votes1
answer484
viewsUpdate PHP variable with Jquery using AJAX request
I have a problem related to HTML, Jquery and PHP, I will try to pass the most information. I have a PHP page that has to go back and forth with variables and it’s like a step by step, where each…
-
1
votes1
answer59
viewsHow to send the value of a radio with the concatenated user id?
Good morning my doubt and complex this creating a system that will create card of each registered user, to differentiate the card each element of the card has the user id. I would like to know how I…
-
1
votes0
answers226
viewsHow to make Carousel in mobile mode appear only 1 column
For example I have the following code: <div class="col-md-12 text-center"><h3>Bootstrap 3 Multiple Slide Carousel DESKTOP</h3></div> <div class="col-md-6…
-
1
votes1
answer87
viewsError sending ajax request
I am making a registration via ajax, and I am getting the following error: Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight. You don’t register, you…
-
1
votes1
answer585
viewsTake dynamically loaded element attribute without event click
During page loading I take data from BD and create a list as below. function chatContactList() { $.post('src/inc/chat/', { DataProcess:'chatContactListShow' }, function(data){ switch(data.status) {…
-
1
votes3
answers159
viewsRead values from a Json structure using Jquery
I’m trying to read the data that is received via php and I need to read these values separately. Return is an object json, when I show on console using command console.log(data) and the following…
-
1
votes0
answers161
viewsConfirm jQuery by running 2 times
Hello, I have a code that "activates and disables" users. This: HTML <button type='button' class='btn btn-success btn-circle ativar-gestor'> <i class='fa fa-check'></i> <input…
-
1
votes1
answer244
viewsHow to take a floating div after a certain scroll
I’m here at my job, and I’m having a problem here on the website. I have a lateral div that has a code js to stay fixed on the page (floating) as soon as it reaches top0 (follow the link below)…
-
1
votes1
answer366
viewsHow jquery events work
I will show examples only of the click event to be simpler to explain, but this is related to any jquery event. When I started using jquery I only used the click event as follows:…
-
1
votes1
answer1182
viewsSend an ajax post request to PHP
I am trying to send a text that is typed via ajax to a php page that will make a query using this text that is received. I want to know how to send the variable value nmCliente for the php page. I…
-
1
votes1
answer313
viewsClose dropdown with ESC key
It would be possible to make the dropdown below, close with the ESC key? $("#jq-dropdown-1").on("contextmenu", function(event){ event.stopPropagation(); var a =…
jqueryasked 6 years, 6 months ago John Quimera 541 -
1
votes1
answer151
viewsSubmit button does not show that it was clicked
I have the page below: http://funerariasaopedro.net.br/novo/contato.php In it has a form of e-mail and, of course, a send button. But this send button is getting one return false why are you sending…
-
1
votes2
answers65
viewsTag exchange with javascript
I want to tag p be replaced by img in Hover, already bringing an image I have in the directory. Is it possible to do something similar? If possible, in the same function. Code: $(function(){…
-
1
votes0
answers53
viewsDoubt in the return treatment Ajax, receive data return from an API
I have an Asp.net web.api API I am making a method that sends the login information, I am having difficulty to do the treatment of the return, even sending wrong information is passing as certain.…
-
1
votes2
answers837
viewsAlways keep a dropdown menu open
Using plugin Jquery Dropdown: https://github.com/soundasleep/jquery-dropdown To create multiple menu styles, it is simple and easy to customize. I wanted to see if it would be possible to keep it…
-
1
votes2
answers47
viewsEnable inputs as filling
How can I make each input field filled next appear in jQuery? Would thus, select drive after the user selects the party period, after choosing the day appear the last field to choose the party type…
-
1
votes0
answers64
viewsForm in UL List Li
I have a form where the structure is formed by an organized list <ul> <li id="pai"> <input type="text"><button class="ul-appending">Add Input</button> <ul>…
-
1
votes1
answer72
viewsUse the same script for multiple forms
How do I use only one script for multiple forms? <script> $(document).ready(function() { $("#formPost").submit(function() { var dados = $(this).serialize(); $.ajax({ type: 'POST', url:…
-
1
votes1
answer112
viewsHow to know the Jquery library version just by viewing the codes made by other users?
I have a small jquery code here, offered by a member of this site that I ended up finding, and I don’t know which version of the library I should upload and execute someone else’s code. I can’t…
-
1
votes1
answer157
viewsSpecific image in a modal window
I have a code that takes all images from a directory: <script> var folder = "img/"; $.ajax({ url: folder, success: function (data) { $(data).find("a").attr("href", function (i, val) { if…
-
1
votes1
answer320
viewsDynamic form autocomplete
I have a form that includes lines dynamically. In this form I have a field autocomplete where I select the product and add the product value to another input. My problem is this: if I include two…
-
1
votes1
answer115
viewsHow to cancel an Xmlhttprequest using a button?
I am creating a file upload script that will be divided into Chunks according to the file size, thus creating several requests with different parts of the file, but I would like to put the option…
-
1
votes3
answers260
viewsHow do I change the edge color of the input tag when selected
How do I change the checkbox border color when, for example option 1 is selected? Given my html code: <div class="opcao-de-entrega"> <p class="menu-opcoes-titulo"> Opções de entrega…
-
1
votes1
answer216
viewsJavascript return result to Controller
Good afternoon. I have a page with a multselect in jquery (Link). In this multselect there are 2 list, one with all the calories and the other with the selected values. When editing this…
-
1
votes1
answer947
viewsPost in a div
Good morning. I have a div that when clicked, opens a page. So far so good and is working. Now how do I make so that when the user hovers over that DIV, appear a Popover with the message "To edit…
-
1
votes2
answers1192
viewsHow to apply a zip code mask to a datatable column using Javascript?
I have a Datatable in my View Index that has the CEP column that needs to have a CEP mask (ex: 29780-000). Does anyone know how to do this using Javascript? <table class="table table-hover…
-
1
votes0
answers43
viewsCombo product and play value in inputText
I am developing a DOCUMENT registration with parameters such as Material, Name and other data. And how it will work, before performing a normal PRODUCT registration with parameters of Material and…
-
1
votes1
answer45
viewsmenu overwrite the entire Document
I got the following jQuery: $("div.menuMin img").click(function(){ $("div.menuMin").css("display","none"); $("div.menu") .css("position","absolute") .css("display","block") .css("width","100vw")…
-
1
votes1
answer82
viewsjavascript create links comparing tag text
What better way to make this script slower with or without jquery, the original function has more than 200 lines of changes, and is applied on a page where there are on average 1000 to 1500 tags to…
-
1
votes2
answers40
viewsError executing function passed via parameter in javascript
I have this modal functionConfirmation that I’m trying to use for various functions. In it I pass the title and the modal message and the function to be executed if the user click OK. function…
-
1
votes1
answer161
viewsPass function to another function as parameter with parameter in this javascript function
The title may seem a little confusing but what I want is basically this: on the button onclick pass to a function A a a function B as parameter. Only that already pass a parameter on which B will…
-
1
votes2
answers37
viewsHow to add Divs from a past Select number?
You could help me with a problem I’m having? Good people need to create a select with values from 1 to N numbers, after the user select a number in the select have to create n Divs from the selected…
-
1
votes1
answer355
viewsSetar Interval every 1 second
I have a problem: To check if the button is visible (He’s got 30 minutes to show up. But as the function varies to remove it, it can increase the time for it to appear so I think it best to use 1…
-
1
votes1
answer27
viewssend attr value for $.ajax
I have a link a, that if clicked, leads to a scrpt ajax for the deletion of ID. With the código below I can’t catch the id in page of php // JavaScript Document $(document).ready(function(e) {…
-
1
votes1
answer36
viewstake the html of a $('a'). index(this);
A simpler example of what I want would be the following: $(document).ready(function(){ $('a.excluir').click(function(){ var i = $('a').index(this); alert(i); }); }); <script…
jqueryasked 6 years, 5 months ago Carlos Rocha 1 -
1
votes2
answers958
viewsError in modal call with bootstrap 4 and jquery with id= "#"
So guys, I created a modal as follows: <div class="modal fade" id="#siteModal" tabindex="-1" role="dialog"> <div class="modal-dialog modal-lg" role="document"> <div…
-
1
votes1
answer373
viewsCreate dynamic associative array within loop
I’m having a hard time trying to create a dynamic associative array within a loop, the error returned in the console is Cannot read property 'push' of undefined, the idea is a sports quiz with 3…
-
1
votes1
answer31
viewsDiv does not fit the screen
On the page http://funerariasaopedro.net.br/ I make use of the plugin to the immature https://michalsnik.github.io/aos/ Then the disposition of divs is thus by default <div class="aos-item"…
-
1
votes3
answers925
viewsPick only the time in Fullcalendar
How do I pick only the time in Fullcalendar? I’m using Fullcalendar to register events. The fields are: Title, Event Color, Date, Time, Description In the database, it is being registered as…
-
1
votes1
answer34
viewsIdentify type of operation with javascript
How can I identify, when the click is "From:" "To:"? I have a code to add a value from a database field, to another field, follow the example: HTML: <div class='row justify-content-center'>…
-
1
votes1
answer2264
viewsScroll Soft Bootstrap
$(document).ready(function() { $(".scroll").click(function(e){ event.preventDefault(); $('html,body').animate({scrollTop:$(this.hash).offset().top},1000); }); }); .menu{background:#ff0;}…
-
1
votes0
answers34
viewsLogic Jquery ' ? ' and ' : '
Hello, I’m a beginner in jquery, and I was looking at the documentation for Jquery Ui, Draggable and Droppable. I’m studying the demo of the site, but I don’t understand this part: var $list = $(…
-
1
votes2
answers188
viewsHow to clone Divs from a past Select number?
I need to create a select with values from 1 to N numbers. After the user selects a number in select I have to clone the div lote from the selected value. Example: if I select number 2 in select,…
-
1
votes2
answers253
viewsHow to save selected items at check from bank using AJAX, Jquery, and C# MVC?
I have a form that shows me a list coming from the bank in checkbox form. How can I identify which items on the list were marked in the save? I carry it like this: function CarregaSaida() { $.ajax({…
-
1
votes1
answer51
viewsValidating the form field
I’m creating a simple form, in which I have to make a calculation of two fields to appear a message, until then no problem, but since there are several fields that I will have to apply the same…
-
1
votes1
answer108
viewsScroll action in javascript
My project is to make an animation in a logo using a css effect of the Animate.css library, the animation will occur at a certain point in the scroll of the site. I managed to do something, but…