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
votes0
answers48
viewsDoubt with Increment + Loop . js
I have this script: var startValue = '0.00000001', stopPercentage = 0.000001, maxWait = 800, stopped = false, stopBefore = 1; var $loButton = $('#double_your_btc_bet_lo_button'), $hiButton =…
-
1
votes3
answers157
viewsWhy doesn’t View see the javascript file?
How to make the view run the javascript file: novo.js Directory structure: Views > Product > js > new.js Error: View Product.cshtml: @{ ViewBag.Title = "Index"; } <h2>Index</h2>…
-
1
votes0
answers110
viewsLoop a javascript DOM element - Each element in a <li>
I am developing a memory game and the icons they are not going one for each li but every loop appearing one more icons in the corresponding li. In the last li appears 16 icons instead of a. const…
-
1
votes2
answers115
viewsHow do you make the <div> with the <img> tag only appear after the photo is loaded?
good afternoon friends. I’m using Jquery so as soon as I receive the image by the "file" input, send it to the img tag placed next to it, however, I want the image to appear only after loading... If…
-
1
votes1
answer54
viewsReturn result in an input
Good afternoon, I need to return a result in an input. how do? HTML <div class="form-group"> <input class="form-control input-lg" type="text" name="cc-number" id="cc-number">…
-
1
votes1
answer50
viewsQueue to View Modal Bootstrap
Guys, somebody give me a light. I’m taking some events with socket.io and putting a modal when I receive, but I get mt event and the modal Uga I’m trying to use a settimeout even more this buggy if…
-
1
votes1
answer169
viewsJquery validation input Multiple file
Currently valid only file extension on input file, need valid a file multiple. Code I have so far: Html <label>Arquivos .XML<br> <input type="file" multiple name="arquivoXML[]"…
-
1
votes1
answer28
viewsMultiple results with pre-established value of one addition
I have an input number and I would like when the user enters a value he makes an addition sum with a preset value by a variable and shows the result using Innerhtml (because I need modified value…
-
1
votes1
answer124
viewsFocus on Input by clicking Link
I am creating a code where clicking on an edit link will hide a particular form (with data loaded) and appear the form for editing this data. In my Javascript code / jQuery I have a function to…
-
1
votes1
answer57
viewsGrab image data-src open in lightGallery
I need to get the data-src of the gallery’s open item, as the user advances the photos in the gallery, an input should be updated. <div class="item " data-src="assets/img/tour/-11521134609.jpg"…
-
1
votes1
answer24
viewsWrap Divs with the same class
I want to apply the insertion of labels with Javascript or jQuery. I have this code: <div class="name">...</div> <div class="name">...</div> <div…
-
1
votes4
answers553
viewsGet values from a multiple select (Materialize)
Good morning. My problem is that I can’t or don’t know how to get the values of a Select Múltiple of Materialize V 0.100.2, if anyone can explain or help me, please, I’ll take it, but it won’t give…
-
1
votes1
answer28
viewsgetelementsbytagname is returning wrong values
I’m trying to make an HTML table selectable, when I try to get the table rows by getElementsByTagName(), is returning different values when reloading the page. My Table: Javascript: var tabela =…
-
1
votes1
answer55
viewsHow to make the button occupy all the height and width of its parent element?
Hello. I have a table that is dynamically populated with data coming from the Mysql database. For this I use AJAX and PHP. I have the following question: How do I make a button (which is actually…
-
1
votes1
answer41
viewsHide entire first elements until you don’t leave the div
I’m having a problem with css, I don’t know how to hide the first element (since it’s on float: rigth, it is the other way around) in full until they fit in the div leaving out. :root { --tema:…
-
1
votes1
answer825
viewsJquery onkeypress ENTER
I have a table that when you double-click on one of its fields it becomes an input and this input, when I press enter, becomes a table field again, but sometimes it doesn’t work right away, I have…
-
1
votes1
answer32
viewsHow to show in separate lines/inputs(os), the values of an array every time the Checkbox is clicked?
I have a problem with "how" to show the values received by the onClick event in the checkbox field, which are stored in an array. Every click on a checkbox stores its id in the array. I can show all…
-
1
votes1
answer160
viewsGet String (.net core for Jquery) value
I am developing a site with . net core and I am using Jquery. On the page Index.cshtml.cs I have a function that has the validations and I pass the messages (if it is ok, if there was an error),…
-
1
votes2
answers31
viewsindex() only for elements with a specific class
How can I use the index() just to know the location of the element between elements that share the same specific class? For example, I want index() to ignore all other classes except the class x:…
-
1
votes1
answer135
viewstake data from a given line
I have a table. In each row there is a button. At the time the user clicks, I need to get all the data of this line. It is a common table, where data is inserted dynamically, along with the button.…
-
1
votes1
answer42
viewsPerform redirection by getJSON
I’m making the login screen using getJSON. I’d like to know how I can do the redirect once it’s successful. The idea of redirecting login.php is not to get too exposed the Javascript code. login…
-
1
votes2
answers85
viewshtml page does not interpret css class inserted on button at runtime
I wrote the following code: $(document).ready(function() { $(".addAssunto").click(function() { var tr = '<tr>' + '<td>' + '<input type="text" class="form-control no-border"…
-
1
votes0
answers111
viewsAjax PUT returning error 500
I did an ajax to use the PUT method to update the field of a table but the server (Rest) is returning me error 500 and I do not know what I’m doing wrong, someone can give me a light please? Error…
-
1
votes1
answer199
viewsCan I place a TD of a TABLE with button features through Bootstrap classes?
I used to use Buttons inside TD when creating dynamic tables in which each row (TR) has a button. But I started to see that instead of putting buttons inside the TD, they put a TAG "a" and assigned…
-
1
votes1
answer386
viewsReturn modal values to main screen using jQuery
I have a Bootstrap modal where I fill out a "form" with 2 input fields and 3 radio options. Follow code below! By filling out these fields I have one button (Generate) that puts the entered values…
-
1
votes1
answer358
viewsApply jQuery Datepicker to dynamically added fields
I made a form with a "date" field and used jQuery Datepicker to enter the date. I also made a function to add more fields similar to those already existing in form: Code entering new fields:…
-
1
votes1
answer61
viewsDisplay preview of the video the user selects by input
In my application the user can select a video to add to the form, but before sending it I would like it to display the video when the user selects the file. I managed to do this already with images…
-
1
votes1
answer896
viewsPrint two or more pages using jsPDF
I’m generating my own html in PDF with JsPDF. My html is larger than an A4 sheet. To solve the problem I need to create paging in Jspdf. Code I have that only generates pdf with a page:…
-
1
votes2
answers151
viewsClone and delete DIV
Good morning, everyone, I need to implement in a project a function in my Products tab, where I need to add (clone) and remove the Divs and increment the number of these dynamically through the…
-
1
votes2
answers161
views'addeventlistener is not a Function', why does this occur?
Hello! In my code the console displays me the following error: Uncaught Typeerror: d.addeventlistener is not a Function, I use Jquery. I already changed the addeventlistener for on, does not return…
-
1
votes1
answer23
viewsBranch Filter Using Buttons
Hello, I made a branch filter for my company, but I put up a backlog. I want the person to choose the region of the subsidiary and browse the content of that button and that the content will…
-
1
votes0
answers26
viewsAdd multiple elements (DIV’s) to IE 11
Hello, I have the following code: function LoadProd() { var restUrl = "https://tenant.sharepoint.com/sites/site/Negocio/OfertaParticulares/_api/web/lists/GetByTitle('Ofertas Particulares - Criação…
-
1
votes1
answer34
viewsElements inserted via . html() and jQuery key action
The idea of the code is to search for products and insert the product link when the user selects the registration link as a linked product. By clicking on input[type='radio'], a new field is…
-
1
votes1
answer271
viewsreturn data from a select in the modal
Do insert, update and select with modal. When I edit load the data returned in inputs, in checkbox, us textarea, but we select does not load the information. Code where I query the data and create…
-
1
votes1
answer71
viewsHelp with function to add and remove Divs with Autoincrement
I made a code to add a DIV (wrap-products) with all the HTML elements that are inside it as soon as the "+" button is pressed. Each DIV is added one below the other with the same characteristics,…
-
1
votes2
answers120
viewsDynamically created datatable and tables problem
Good afternoon Galera, I’m having trouble using the dataTable() in a dynamically created table. in the HTML i have the table body. <table class="table table-sm table-hover" id="mytable">…
-
1
votes2
answers83
viewsRemove an attribute from the <a> element when there is a specific attribute - jQuery
In the HTML of the page I’m adjusting, it contains several links with a function in the onClick: <a href='#' onClick='funcao(100)'>Link</a> and the current Javascript is like this:…
-
1
votes0
answers39
viewsHow to catch the event when an input receives text from the autocomplete? No Jqueryui?
I need to know if you can notice (event) when I’m browsing the listbox generated by the Chrome autocomplete (for example) when it automatically plays address values, phone, etc, in the form fields…
-
1
votes1
answer593
viewsUpdate field with select data
I have a field of type select that I select a driver, I would like when I select this driver the text field received the phone of this driver, which already comes with the information of the line of…
-
1
votes1
answer562
viewscheck if file is image or video with JS or JQUERY?
Good night! I’m doing an image/video preview before the user posts it, I’m wanting to do it with a single input and would let JS check the file and return the extension so I can display the desired…
-
1
votes2
answers137
viewsHow to treat Timestamp field return via AJAX?
How to convert this sequence of numbers: 1555506548000 into a valid date ? I need to make the following comparison: if (_valor[0] == item.DT_CRIADO_EM) { //Faz alguma coisa }; However the date is…
-
1
votes1
answer31
viewsShow div when scrolling only
I put my sidebar to appear as you scroll down. The problem is that when you load the page, the sidebar becomes visible, and when you scroll, it "blinks" and becomes visible again (and when you…
-
1
votes3
answers89
viewsHow to reference only the first occurrences of an A tag using jQuery?
I have the following HTML: <div class="block_content_inner"> <div class="details_block"> <b>Title:</b> "Titulo do Filme" <b>Genre:</b> <a…
-
1
votes1
answer45
viewsJquery seems not to update
I have a Customer code = 3368. I made a function jquery that takes the code from Dropdown, which may be 1 or 3368 (only has two records there in the dropdown). It turns out that when I have in…
-
1
votes2
answers104
viewsSelect all checkbox separated by groups
How to select all checkboxes for each group? A function has to be done for each button or has a correct way to do this? $('#select-all-A').click(function(event) { if(this.checked) {…
-
1
votes2
answers208
viewsDropdown menu superimposing
I created a menu dropdown, submenu dropdown, The problem is that when I click one submenu and then another, the first one doesn’t close. What could be? <script…
-
1
votes1
answer119
viewsMaterializecss, change icon after attaching image in input file
I’m using materializecss to make a form. I would like help to make the once the image is attached, change that icon: It would just change the icon of: <i…
-
1
votes4
answers114
viewsHide a DIV based on the value of a field
Good afternoon, guys! I’m trying to hide a DIV in my code based on the value a field on my site returns. If its value is contained in "Accident", the DivAcidente must be displayed. If any other…
-
1
votes2
answers162
viewsRemove Class from an element two levels above the clicked element
You guys, I own a lot of divs like that: <div class="funcionalidade"> <div class="imagem-funcionalidade azul-escuro"> <img src="https://www.xxx.com.br/img/xxxx/xxxx/logo-xxx.png"/>…
-
1
votes2
answers47
viewsHow to add class to specific elements?
I have the following: <figure class="itemImage"> <span title="Camiseta preta O Poderoso Chefão"…