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
answer54
viewsHow to make a continuous slider?
I’m trying to make a continuous slider like this <div class="owl-carousel owl-theme"> <div class="item"> <a href="#" title=""> <img src="portfolio/img/thumb01.jpg" alt="">…
-
2
votes1
answer146
viewsI want to pick up multiple checkbox with item ids for AJAX in select all
I have a checkbox to select everything. Underneath it I have two checkboxes. The select all I haven’t done yet but it’s not the problem, I need only that by clicking the button, send the post with…
-
2
votes1
answer51
viewsreceive what is written from an input
I have the following situation where I have this input <input type='text' class='form-control' value='' id='textInput'> and I have the span <span date-dados='' class='j_details_action…
-
2
votes1
answer67
viewsInterrupt setInterval for a function to run in its place?
I have a code that makes a query in the database (every 1 second) using the setInterval and updates a dashboard (Via AJAX and PHP) from my system, which shows the summary of all user tasks. (To give…
-
2
votes3
answers601
viewsIs a Switch within an Else possible?
I’m trying to make a site where the player can calculate the status of his character automatically to streamline at chip time, character creation and no mistakes. So I made the following code (using…
-
2
votes0
answers41
viewsWCF error time - Await Jquery Post
I have this method, which until then works well: $('#modelEditar').submit(function (e) { $.post($(this).attr('EnvioLote'), $(this).serialize(), function (json) { if (json.sucesso == false) {…
-
2
votes2
answers74
views -
2
votes1
answer1035
viewsSelect Multiple with jQuery Chosen
I have a class Client, and a class System Man client may have more than one system, and a system, may have more than one client. I have a select Multiple capo, in my edit view, which loads the…
-
2
votes1
answer83
viewsHandle Multiplus elements by ID
My question is the following: I am customizing a bootstrap File Input, and at the same time transforming it into a plugin. The customization was done, but the problem now is to make the file removal…
-
2
votes1
answer113
viewsReset, reset Hover behavior
I have an element with Hover that expands the chat channels of a website. The problem is that on mobile, the Hover only works when I click on the element. Thus, to close the channels (close the…
-
2
votes1
answer193
viewsRecover cookie with Typescript
hello, I’m passing a jQuery code that I was developing, for Typescript... I had made in Jquery a withdrawal of cookies that was working perfectly. What I need is to pass to the avriável, the value…
-
2
votes1
answer52
viewsShow DIV when I click the Button via Jquery
I’m using the following code to show the DIV when I click the button: $(".button").click(function(){ $(".div").css("display","flex"); }); It is working normally when I click the button created…
-
2
votes1
answer315
viewsCNPJ Mask function for field with dynamic value
I’m having a question on the following occasion, I have a maskCNPJ function where the function obviously adds a mask on the supplier’s CNPJ number. The problem that is happening, comes from the fact…
-
2
votes2
answers110
viewsHow to change the color of the div without affecting :Hover
I am trying to change the color of my header as soon as it passes 400px but when doing so my :Hover no longer works in the div after sliding down the bar $(window).scroll(function() { if…
-
2
votes1
answer109
viewsHow to call a PHP function that returns a string using jQuery or Javascript?
I have a PHP file that returns the amount of user registered in a Mysql database. I was wondering if there is a way to put this number inside a div using jQuery or Javascript without having to put…
-
2
votes1
answer313
viewsGetting the Datatable Server-side ID
I’m using the Datatable Server-side, but I’m not sure how to catch the ID from my table to open the edit and delete pages. server-side $table = 'financ_receita'; $primaryKey = 'ID_Receita'; $columns…
-
2
votes2
answers69
viewsenable option in select
I have the following select: <select id="selectChannel" class="form-control form-control-sm custom-select"> <option value="" disabled="disabled">Selecione o canal</option>…
-
2
votes2
answers134
viewsDeserialize array of C#objects
Good evening! I have the following script in my View: $('form').submit(function(e){ e.preventDefault(); var resposta = new Array(); var x = 0; var y = 0; $(".resposta").each(function () { var dados…
-
2
votes1
answer110
viewsHow do I make a dynamic pagination run the same function it was rendered?
I’m dynamically rendering a view with the pagination defined and to perform this action I use the following function: $('#form').submit(function (e) { e.preventDefault(); const request = $.ajax({…
-
2
votes1
answer54
viewsChange box text when selecting option
I have the following code, but I’m having doubts about how I make the text change according to the selection. I wanted that when selected, for example, the user Marcyen as goalkeeper would appear a…
-
2
votes1
answer52
viewsImages duplicating at the time of transfer with Ajax jQuery!
Well, first of all, I’m sorry if I’m being an inconvenience to the question, it’s my first. I have a function in jQquery and Ajax that upload photos and have a PHP page to validate: This is the…
-
2
votes2
answers94
viewsGet the number of rows and turn into Divs
Good morning, recently I was writing this code and had some problems, I would like to get the number of lines of content from a div "contenteditable" and take these values (numbers) to another div.…
-
2
votes2
answers251
viewsHow do I do my table with infinite scroll?
I have the following situation: I want to get to the end of the table to make an Ajax request and return another 10 lines in my table. For example: <!DOCTYPE html> <html> <head>…
-
2
votes2
answers72
viewsHow do I pass the right string value to my controller? from the error when returning to Edit View
**// Tentei destas duas formas e não consegui nenhuma!** // Onde tem item.nome é de um foreach que me retorna nome de uma pessoa <span data-toggle='tooltip' data-placement='bottom'><a…
-
2
votes1
answer47
viewsScroll from a certain point with jquery
Good evening... I have a div which is the chat window with the following settings: <div class="container" id="chat-rbox"> <div class="row"> <div class="Area chatlist bg-light">…
-
2
votes1
answer386
viewsDynamically scale header height
So I have the following structure HTML <div> <header>Esse é o cabeçalho</header> <article>Esse é o artigo que vem sobre do cabeçalho</article> </div> I’ve got…
-
2
votes1
answer619
viewsView content only after full page load
Hello, I have the following code snippet below: Code div#container{ position:absolute; width: 100%; height: 100%; top: 0px; left:0px; background-color: #eee; display: block; } div#loader{ border:…
-
2
votes2
answers209
views$. each on a JSON of cities
I am with a Json of cities in the following structure: var cidade = [ { "sigla": "AC", "nome": "Acre", "cidades": [ "Acrelândia", "Assis Brasil", "Brasiléia", "Bujari", "Capixaba", "Cruzeiro do…
-
2
votes2
answers92
viewsAjax does not send data to php!
The code in Ajax works perfectly but the data is not sent to php! Where am I going wrong? AJAX.php <!DOCTYPE html> <html> <head> <title>AJAX</title> <script…
-
2
votes1
answer16
viewsjQuery - Effect of transforming text into tag only works on the first row of the table
I’m trying to transform the status of the table into a tag, I got it with jQuery but it’s only applying in the first row of the table (generated with PHP), the rest the text is not replaced. PHP…
-
2
votes1
answer148
viewsBack to previous page
https://www.jqueryscript.net/demo/Smooth-Single-Page-Transition-Effects-Using-jQuery-CSS3-page-js/ I want to make 1 site like this, one page only but divide it into two parts, right and left. The…
-
2
votes2
answers95
viewsMove a div and remove it to release content behind
.atras{ display: flex; flex: 1; height: 100vh; justify-content: center; align-items: center; } .frente{ position: absolute; top: 0; right: 0; display: flex; height: 100vh; width: 100vw;…
-
2
votes0
answers31
viewsHow to use jQuery.validation in Checkboxes generated by jQuery.Repeater?
I am using Dubfriend/jquery.Repeater to repeat some fields in a form, proengsoft/Laravel-jsvalidation to export Laravel validation rules, and jQuery.validation to validate them. Checkboxes processed…
-
2
votes1
answer94
viewsDifficulty in the methodology of programming and migration from mysqli to PDO
Hello, everybody. I always programmed in the Back-End part (with PHP) using mysqli, but after reading some articles and comments, I came to the conclusion that I need to change my method of…
-
2
votes3
answers83
viewsEnable button only when two selects are different from 0
Good morning. I am doubtful to do a validation in two selects in jquery. I need the button to only enable when the two selects are with some selected value. But the way I did, it validates if the…
-
2
votes2
answers81
viewsProblems in the use of PDO
I used to use Mysqli, but now I started using PDO. I’m having a little trouble at the beginning. I made the code below, only when I use the parole and it enters the else, something is not returned…
-
2
votes1
answer109
viewsReturn to the first tab when closing modal
I have a modal with tabs and I would like that whenever reopen my window the tab goes back to first, currently whenever I close the window the tab that appears is the last that activated. Follows my…
-
2
votes1
answer989
viewsCPF/CNPJ mask cannot validate CPF
I am mounting a CPF and CNPJ validator with mask. The problem is that it is not mounting the mask properly in the CPF. How to correct this error? The code does the following: At the time of typing…
-
2
votes0
answers107
viewsHow to find an image that is stored in the database and display it in an HTML IMG?
So, I am making a page on which the user uploads an image and it is stored in the database (Mysql). See below how it is stored in the bank: So far so good. Now I would like to take this image and…
-
2
votes1
answer109
viewsTimer in Javascript does not start
I have the following situation, days ago I created a timer with some conditions and everything right. But now I need to call the function more than once, because the timer will run independently for…
-
2
votes1
answer683
viewsDate sorting problems in Datatables
Hello. I know there are several topics here on Stack, but I’ve tried all the options suggested in the answers and failed. My problem is that when I click on the table header to sort it by date…
-
2
votes2
answers84
viewsKeep in array the serialize
In the example below, I do the serialize and already step straight in 'date', in ajax: function filtrar() { $.ajax({ type: 'post', dataType: "text", data: $('#filtros').serialize(), url:…
-
2
votes2
answers343
viewsInput with CPF/ CNPJ mask undergoing change by keys like TAB and ENTER
Good morning guys. I have an input where this is typed a value and as the size of this gets the mask CPF or CNPJ. The problem I’m having is that when a CPF is typed with the correct size for…
-
2
votes1
answer66
viewsIgnore unfilled Mysql PHP fields
I need to bring information from a table that uses several fields. This information needs to be handled before entering an HTML Select. Every structure for this is already ready using AJAX but I’m…
-
2
votes1
answer367
viewsJquery validate (Rules)
I have a question about Jquery’s validation. I can use it normally. but I need a validation if the user chooses an option in the "SELECT > OPTION" form, I have two options, "YES", "NO". If the…
-
2
votes2
answers58
viewsJavascript function being called too early
I have a registration form that has, among others, the following field: <div id="Aditivo" class="col-xs-12 col-md-2"> @Html.LabelFor(model => model.NumeroAditivo, new { @class =…
-
2
votes2
answers78
viewsUsing Promise Javascript
Hello, I have a requisition GET in Jquery, to load a page HTML; and if the page does not exist, then displays in the container a <div>erro 404</div. The Jquery request works well. Jquery…
-
2
votes2
answers107
viewsDuplicate Jquery event in ajax call
Good afternoon guys, I’m in the following situation: I have my page called Stock.html, it contains the Jqueries events belonging to it, for now everything normal, but on this page there is a button…
-
2
votes0
answers46
viewsDynamic variable + inclusion form field
Hello. That’s what the scope is.. I have a holder who can have n dependents. The related person in the sale uploads files from holder and dependent. Save a folder with the holder’s CPF number on the…
-
2
votes1
answer67
viewsAdd class using Jquery in a specific form?
How to add a class to the palette button I click on "Like"? For example, I have several color palettes, but when I click on Like, all buttons get the class .red, I wanted just what I clicked to get…