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
-
2
votes1
answer1232
viewsUncheck other checkboxes when selecting one
Hello, I have three checkboxes in my form and would like me to select one the other two are unchecked. I tried to use some examples I found here but it didn’t work as expected. It follows the HTML…
-
2
votes1
answer976
viewsAJAX request for PHP (Codeigniter) does not return values
I’m working on a situation I haven’t been able to resolve in over two days straight. I have an AJAX that is requesting values for a controller to popular a select with cities. The request seems to…
-
2
votes1
answer82
viewsHelp to subtract 2 results
Hello someone gives a hang here with this code , I would like to take the value of the input less the output subtract in the case, follow my code below ! <script…
-
2
votes0
answers261
viewsHow to use scroll only in the table that is inside a modal?
I have a screen that has scroll, and on this screen access a search modal. This modal loads some information in table, so I use the shortcut keys to facilitate the navigation of it. The problem is…
-
2
votes1
answer174
viewsNull value is going to the ajax error function - ASP.NET MVC
I am developing a ZIP consultation page where sending and feedback information is done in ajax: $.ajax({ url: "@Url.Action("PesquisarCEP", "CEP")" + "?cep" + retirarMascara($("#dsCEP").val()), type:…
-
2
votes1
answer151
viewsDatatable start with default value
I’d like some help with my problem. I wonder if there is the possibility to start datatables with the search field already filled with a default value. I tried it this way.…
-
2
votes1
answer119
viewsEvent that performs a database query when clicking on a <tr> table
Hello. I’m making a system that when the form is submitted, a table is generated with the survey data. So far so good. Now I’d like to know how I do for when I click a button (), which is inside a…
-
2
votes2
answers155
viewsEasiest way to turn a request into Formdata
this.getArray = function(callback){ $http({ method: "post", url: "index.php?modulo=ClientesOnline&acao=getClientes", headers: {'Content-Type': 'application/x-www-form-urlencoded'}, data:…
-
2
votes1
answer176
viewsDynamically limit inputs
I’m a little young in jQuery and would like to know how I do to limit the size of input dynamically inserted. An example: in the code below the user can enter how many inputs want, however I wanted…
-
2
votes0
answers145
viewsDrag & Drop AJAX
I have the following codes INDEX.PHP <section class="content"> <div class="row"> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading">…
-
2
votes1
answer50
viewsIs hidden content bad for accessibility?
I have a table with three columns, one for "Species", one for "Quantity" and one for options. The quantity field can be changed when the change button is clicked, with the change button hidden to…
-
2
votes0
answers37
viewsFacilitate quantity change in input number
By placing a <input> with type="number" in an HTML form, viewing the page by a PC the field shows the arrows up and down, but in Mobile appears the keyboard to type the number, I wonder how I…
-
2
votes2
answers1283
viewsUser Registration in Laravel
I’m starting with Laravel for a couple of weeks and automatically it’s raining with doubts. I have a registration form with the following button below: <button type="button" class="btn…
-
2
votes1
answer35
viewsScript adding multiple submits to form in modal
Next, I am trying to perform a password recovery form on a modal, however, each time I click on the button that opens the modal, a Submit event is added to the form. Any idea how I can solve this…
-
2
votes2
answers31
viewsIs it a problem to remove class that an element does not have?
I have an application that at certain times I need to remove and add classes from an element by Javascript. $('.elemento').removeClass('minhaClasse') $('.elemento').addClass('minhaClasse') Currently…
-
2
votes1
answer405
viewsPass value parameter by clicking on radio input type, with php, jquery and mysql propagating
Hello, good afternoon everyone, guys I’m having a doubt I do not know how to proceed I need to send the value that is inside the value input type radio to a variable jquery remembering that I even…
-
2
votes1
answer71
viewsWhat is the default speed value in Bootstrap 4 animations?
I want to scroll the screen to the element with ID main-title, for this I am using jQuery animation function with 1000 ms as below: $("html, body").animate({scrollTop: $("#main-title").scrollTop()},…
-
2
votes1
answer155
viewsAjax Polling shared between tabs
First of all I need to inform the current situation. I own a website, there is an ajax Polling, which requests every 5 seconds to get notifications and the like. The entire site is supported by two…
-
2
votes2
answers1352
viewsValidate field to accept integer and decimal numbers
How to do with Javascript, so that one input text type accepted only whole numbers and decimal numbers up to 2 decimal places. Ex: 1 - true 1,1 - true 1,11 - true $("body").on("input", ".number",…
-
2
votes2
answers611
viewsAjax does not return the date of requests
I perform a query with ajax on a php page, the problem is that even asking to return data, the ajax 'date' does not return anything, I give an Alert in the 'date' and it returns me a blank alert, JS…
-
2
votes1
answer1791
viewsWhy do I have to use Formdata to send files via Ajax?
I created an HTML page with a form, and in it a imput file and another field hidden, all of them with the attribute name. <form id="meuForm" action="..." method="POST"> <input type="hidden"…
-
2
votes1
answer3211
viewsCan you pass the function name as parameter?
I’m racking my brain here for a solution whose is to pass function names as parameters to be executed. I have the function ShowModal in which its goal is to call other functions and objects. How can…
-
2
votes1
answer116
viewsjspadf and canvas, does not screenshot the full modal
I have the following code on the page where I check the data with the modal (function($){ $.fn.createPdf = function(parametros) { var config = { 'fileName':'html-to-pdf' }; if (parametros){…
-
2
votes1
answer3250
viewsJquery - Popular table using array
I need to populate a table with objects received via database, but I am unable to pass the content: <table id="grid-itens-nota" class="table table-bordered table-hover"> <thead>…
-
2
votes2
answers64
viewsUse JSON in Jquery library
I’m using the "Vegas Background Slideshow" library in a project with the following code: <script> $("#main").vegas({ slides: [ { src: "assets/site/img/uploads/banners/01.jpg" }, { src:…
-
2
votes1
answer191
viewsJSONP breaks at two points (" : ")
The server sends a JSON, normal. Follows the code: @GET @Path("email") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public String getEmail(){ ViewStatisticsEmail…
-
2
votes4
answers239
viewsProblems with paging on the search page
I’m creating an input for searching my table, but I’m having problems with paging on the page where I search. Page where I create the table and make the normal pagination: <div id="resultado">…
-
2
votes3
answers779
viewsAssigning an image(s) value to the Javascript input
I have the following input <input type="file" id="imagefiles" name="files[]" multiple accept="image/*" style="display:none;" /> This input receives up to 3 images I’m using javascript to give…
-
2
votes1
answer333
viewsIs using Jquery still advantageous today?
I wonder if the use of Jquery is still advantageous in the development of Frond-end with the features with Ecmascript 6 and the like.
-
2
votes1
answer271
viewsSimilar Vuejs animation in Jquery
I use a code in jQuery to make an animation to load the page, as I do the same with Vuejs? (function ($) { "use strict"; (function ($) { "use strict"; var uza_window = $(window);…
-
2
votes1
answer2308
viewsProblems with Xmlhttprequest in Chrome
After this update of Google Chrome to version 53, I am facing problems in calls Ajax (jQuery), $.http (Angularjs) and Xmlhttprequest (Javascript) presenting the following message: XMLHttpRequest…
-
2
votes2
answers123
viewsHow to make the parent relation between two select elements?
I am making two elements Select a "Area" and another "Problem" and I need to relate to each other, in the BD table of the problem FK spr_sar_codigo referring to sar_codigo of the table Area. I am…
-
2
votes2
answers1356
viewsBootstrap Datepicker doesn’t work?
HTML <input type="text" id="datepicker" class="form-control"> THE SCRIPT IS LOADING NORMALLY <script src="{{ asset('js/bootstrap-datepicker.min.js')}}"></script> JAVASCRIPT…
-
2
votes1
answer96
viewsList errors returned in an ajax request
I have a Controller that is returning errors this way: return response()->json(['erros' => $this->renderHttpException($e)]); I am receiving this json as a response to the ajax request:…
-
2
votes2
answers915
viewsHow to keep the data filled in <input> after clicking send the data?
Hello! I have a table with some input fields, which need to be filled in before the user submits it, however, I needed these completed data to remain after it was sent, even after the page was…
-
2
votes2
answers205
viewsList Attributes of an HTML Element with JS
Talk, you guys, all in peace? I was looking for a solution on the Internet, but I didn’t find what I needed, nor did I understand a way to do it, if anyone can shed some light? I would like to list…
-
2
votes3
answers35
viewsTake attribute value when page is loaded and select or modified
I have a select. I need to get the value of the attribute data-idconta when the page is loaded and also when the select is changed. I’m trying to: $(document).ready(function() {…
-
2
votes0
answers174
viewsUPDATE PDO, AJAX, PHP Object-Oriented
I have the following function within my class public function update(){ try{ $stmt = $this->conn->prepare("UPDATE Tabela SET Dado1 = :Dado1, Dado2 = :Dado2, Dado3 = :Dado3 WHERE DadoId =…
-
2
votes1
answer95
viewsInsertion of record with webservice returns error but inserts in the database
Hello, I have a javascript function that makes an ajax call to a php file that must insert the records in the Mysql database. Well, I am able to enter the records but the function is returning me an…
-
2
votes0
answers168
views -
2
votes1
answer112
viewsRequirejs data-main does not work
Hello I’m always getting the same message when trying to run my index.html file that tries to reload jQuery from requireJS. /Testerequire/jquery.js net::ERR_FILE_NOT_FOUND Error: Script error for…
-
2
votes1
answer1047
viewsDisable Input if Specified Radio Button Is Selected
I have a registration form, which the person selects if she is a Legal Person, and appear the fields to fill when selecting and I have a Jquery script that does the validation so that it is…
-
2
votes3
answers950
viewsLocal communication through online application
I am developing a system for ordering a snack/pizza shop. Let’s assume that the waiter makes the order with the Tablet (Android) at the customer’s desk or the customer goes and makes the request at…
-
2
votes2
answers1926
viewsJquery - How to pass a variable to a jquery selector?
Hello, I’m new here (as well as very new in js and jquery knowledge). I’m trying to pass the result of a variable to a jquery selector. More specifically I want to pass (through the click event) the…
-
2
votes1
answer69
viewsUse of fadein and fadeOut on click() with jQuery
I wanted to make a certain element disappear with the fadeOut() command when clicking on a button, and when clicking again, it appeared with fadein(). I tried to do something like: $('nav.mobile…
-
2
votes1
answer45
viewsHow do I make the user not paint the svg line on a site to color the same
Hello, I’m making a system for children to color a drawing made with SVG format, but when the child colored the drawing it can also color the line and the background. Would it be possible to disable…
-
2
votes1
answer323
viewsHow to change DIV style using AJAX without updating the page
I am doing a complementary activity in college, and I have to do a system to change the style of the div if the user problem is already solved or not. When you click solved if the div is already in…
-
2
votes1
answer97
viewsProblem with function when trying to perform deletion
I’m having a problem making the deletion attempt and I get an error message on the console, my script is like this: <form action="" id="frmDeleta" class="smart-form"> <button type="submit"…
-
2
votes1
answer517
viewsFill a div when selecting a select item (form)
Colleagues. I have a select from which the data comes from a database. See: public function verSelect($tabela,$idTB,$nomeTB,$nomeSelect){ $query = "SELECT * FROM ".$tabela; // echo $query;…
-
2
votes1
answer37
viewsHow to find another name like the one selected and highlight
Hello, I’m trying to make a way to find equal names and highlight Where are the effects class! , someone knows how? Thank you! ` <script> jQuery('#confirmados li').on('mouseover', function(){…