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
answer51
viewsJson how to present in a table
Good morning, I have a return in Json like this: { "dados": [ { "id": "1", "nome": "Geraldo", "login": "geraldo", "nivel": "1", "status": "1", "email": "[email protected]" }, { "id": "2", "nome":…
-
1
votes1
answer49
viewsWindow datetimepicker out of place
I have a problem with the position in which the datetimepicker window appears, as in the image below it appears directly and a little distant from the source field, I would like it to be centered…
-
1
votes1
answer761
viewsAutocomplete in dynamic input
Good morning, everyone. I’m trying to implement autocomplete in dynamic input but it doesn’t work. Already test calling class or id and nothing. Follow the code so they can shed some light on where…
-
1
votes1
answer500
viewsHow to add ID to the tr that are generated with Datatables?
Hello! The Datatables plugin serves to make a table (HTML) after receiving a JSON with the data resulting from a query to the database. Until then beauty, the problem is that as the table structure…
-
1
votes1
answer488
viewsAJAX in the Laravel
I am trying to send data to my controller using AJAX but am getting the following error: AJAX error: error : Not Found What can I be doing to solve this problem? follows the codes: route:…
-
1
votes1
answer52
viewsHow do I pull strings from the URL and mount a specific array for the Google Maps API?
I’m trying to assemble a map of google maps with some pins, where the strings will be passed through the URL. However I need to pass an array like this to the API: var locations = [ ['First Place',…
-
1
votes3
answers654
viewsIdentify the value of a cell of the clicked line of an html table
I’m trying to identify which email tr that was clicked. My problem is that regardless of the tr that I click, always returns me the same value. Note: I would like to know the value of the cell, not…
-
1
votes1
answer71
viewspop-up with picture box using jquery
I’m trying to make a pop-up, but it’s making a mistake fadeIn is not a function at HTMLAnchorElement, because I use that jquery via Cdn because of the bootstrap:…
-
1
votes2
answers256
viewsClose Load when opening modal
How do I stop the one gif, when my modal opens? When I click on the icon FA-SEARCH carries my modal, and the gif becomes infinite. <script type="text/javascript"> $(document).ready(function ()…
-
1
votes1
answer103
viewsHow to assign jQuery value to a textarea
I have a plan form, and I would like that by clicking acquire, it already fill out a brief message on the form. I’m trying this way, but it doesn’t return values window.onload = function (){ var…
-
1
votes1
answer117
viewsDelay keydown event when holding down button
I’m creating a pong using Jquery and I’m having trouble with the keydown event. I will control the player by the up and down arrow, but when I keep the button pressed, it has a delay between the…
jqueryasked 5 years, 1 month ago Caio Lucio Rodrigues 13 -
1
votes1
answer308
viewsHow to add a LI to a UL via Javascript?
I’m looking to add a LI between two LI’s of a UL. I don’t have access to the CSS/HTML code of the website template, if it would not create easily, so I’m thinking about adding via html and…
-
1
votes3
answers175
viewsTypewriter effect is not working properly
I did a typewriter effect with jquery, and I need that effect to take every paragraph. That way I did it applies the effect only to the first paragraph. Follow code for analysis. Can anyone help me?…
-
1
votes2
answers603
viewsHow to update a row in the table with ajax?
The idea is to click the valid or invalid button and update that line in the table, changing the class of the button to the respective situation class: valido or class: invalido with ajax. My…
-
1
votes1
answer102
viewsSelect menu when clicking
I would like to create a javascript function that when the user clicks on some menu item it gets active, I did some research on the internet but could not play in my code. <nav…
-
1
votes1
answer66
viewsreturning array in php and insert into html
I have a PHP script that is returning as follows { "Resultado": [ { "NOMECURSO": "Administração Diurno Sede Ribeirão Preto" }, { "NOMECURSO": "Administração Noturno Sede Ribeirão Preto" }, {…
-
1
votes1
answer37
viewsReplace Content Collapse
Hello! I’m having a hard time getting the contents replaced by pressing the Collapse button. When I click the content that is already activated continues on the page and what I activated appears…
-
1
votes0
answers23
viewsSearch autocomplete with PHP and Jquery with Database
Good afternoon, I’m trying to make an autocomplete, I followed some tutorials on the internet and here, but I think I’m sinning in some detail. My input in index.php <div class="container d-flex…
-
1
votes1
answer47
viewsSend JSON to a variable outside the function
My knowledge is vague in this area, I need a little help! How do I get the result I received (JSON) and move to a variable. outside Function, I’m still learning. But easy to post code, I have a JS…
-
1
votes1
answer548
viewsError installing npm
I use Linux Mint 19, some time ago, I installed npm, nodejs, bootstrap, as well as Jquery, Popper.js, etc. However, I decided to delete the folder where I had installed such files, to start again.…
-
1
votes2
answers416
viewsDownload video tag
I need to have a video download button, I have no idea how I can do this. <video id="videoDownloadLink" style="max-height:320px;" width="100%" controls> <source src="<?=$video?>"…
-
1
votes1
answer32
viewsDisable multine field with Jquery in Sharepoint
I am performing a Jquery script to disable certain fields of a page in Sharepoint, the fields of a row I have identified of a line are inputs and the multilines seem to be Divs. Note that the input…
-
1
votes1
answer506
viewsBlock Datepicker Date Range Javascript
Blocking a date range using datepicker ? Example, today is day 2, start by day, start by current day + 3 days and lock from day 20 forward of each month. maxDate blocks the next few months. I tried…
-
1
votes1
answer66
viewsCheck an option when selecting an option from another select Javascript
Hello, I have first select option: <select name="auto" id="auto"> <option value="">S/N</option> <option value="S">Sim</option> <option…
-
1
votes0
answers49
viewsHow does jQuery’s "on" work?
I’m doing some tests, and, I have some custom events on the platform I use, however, the window.addeventlistener does not work according to the on() of jQuery. the event I use, let’s assume that the…
-
1
votes1
answer135
viewsA loading gif appears when clicking on a link to generate a PDF
I have a system from which the user by clicking on a link as below opens a PDF file: <?php while($listar = mysqli_fetch_object($sql)){ ?> <td class="text-center"><a href="#!"…
-
1
votes1
answer82
viewsActivate the click event with a class
I’m trying to add an event click to a class that is not initially present on the page, since it is added later when the user enters the data. The element in question is this: <div class="tarefas"…
-
1
votes2
answers76
viewsChange the text field by selecting a dropdown option
I have the following field: <div class="row"> <div class="col-md-6"> <div class="input-group"> <div class="input-group-btn search-panel"> <button type="button" class="btn…
jqueryasked 5 years ago user24136 -
1
votes1
answer63
viewsAdd delay/timeout to a . Hover()
Hello, I have a function. Where I would like that in the second instance (mouseleave) a delay occurs so that what is within the function occurs, I have already tried to set within the second…
-
1
votes1
answer93
viewsHow to do div with scroll, when it reaches a certain limit of div height?
How can I get my div, whose text is added through a append jQuery, scroll when the text reaches 100px, and all the added text then stay hidden, and you need to scroll to see the rest?…
-
1
votes0
answers49
viewsAngular CSV import error
I have a ". csv" standard that I make available to the client to download, fill and after completing the fill, import to the platform. It turns out that CSV when opened by excel, creates an empty…
-
1
votes1
answer19
viewsjQuery + html ID
I have two images, I want them to change when: User hovers over it, implemented with CSS, works well. If the user does not mouse the img, when scrolling the page the img changes, I implemented a…
-
1
votes0
answers107
viewsClipboard.js used inside Bootstrap Popover does not copy content
I am using a Bootstrap Popover with the contents in a div and a button to copy, when I click the button I cannot copy the contents of this div. I tested out the Popover the Clipboard.js and it…
-
1
votes1
answer227
viewsModal Jquery/ Materialize not working in index.php
Hello! I am developing a modal of acceptance for cookie terms. I was able to solve cache storage through php. However, I could not see why the modal does not appear in the layout when the user does…
-
1
votes0
answers28
viewsError in Sending Ajax form
Hello, I need a help, when I try to send it displays the message successfully and dps displays the error message when sending, when I enter the dev mode of the browser and see the contact.blade.php…
-
1
votes1
answer151
viewsHow to hold an event about a radio button value inside a modal?
I own a modal with a radio button with two options, "Yes and "No". If the answer is "No" then I send an alert on the screen with a message "Sorry, this link is not for you", if the answer is "Yes" I…
-
1
votes1
answer62
viewsError calling ajax function
I have gotten an error calling an ajax function contained in a file. js separate from my .html. file The same does not occur when I insert this javascript function into my html file. The function is…
-
1
votes1
answer210
viewsJavascript Vanilla - Take select value Multiple and mount in json
<button id="get">Estilos</button> <select id="estilos-select" multiple> <option value="1">Sertanejo</option> <option value="2">MPB</option> <option…
-
1
votes0
answers38
viewsuse ajax or leave form hidden?
Good morning! I am preparing a form, and this form contains a select field. Depending on the select field that the person chooses, new fields must be shown, exclusive to each option. The question…
-
1
votes2
answers707
viewsCatch Value of input number
I have a input of the kind number, and I would like it to accept only whole numbers. Hence I am creating a function that limits the number of characters and replaces the digit that is not number…
-
1
votes1
answer129
viewsHow to change the value of an attribute within a`TD` using jquery?
I have the following table: var saldo = 10; $(".saldo").click(function(e){ e.preventDefault(); $(this).closest('tr').find('td[data-saldo]').html("10.00");//setando o valor da coluna…
-
1
votes1
answer54
viewsHow to write the following jQuery code in pure Javascript?
I’m trying to convert the following code jQuery unsuccessful for javascript pure: $.each($("p"), function(i, el) { var el = $(el); el.html(el.html() + " - " + i); }); <script…
-
1
votes3
answers103
viewsDisable button via php/jquery/javascript
Greetings! I have a page in which contains a 'search' field, when typing something, the field returns similar names. Example: If I type "a" it returns me "amateur, lover, Amarildo, amoxilina,…
-
1
votes1
answer57
viewsDisplay negative days in calculation between dates
I’m doing a list of accounts receivable. To get interactive, I’m creating an IF to show when it’s near. Problem Shows no negative date, which would represent overdue invoice. In this case the low…
-
1
votes1
answer82
viewsPascal’s triangle is in infinity
I’m making a code that generates a Pascal triangle for a project of mine, but when I spin it gets stuck, as if the is infinite. function pascal(n) { var d; var uau = ""; var line; var i; for(line =…
-
1
votes0
answers31
viewsWhy does jQuery code not work as it should with slideToggle?
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
jqueryasked 4 years, 9 months ago Éverton Toffanetto 87 -
1
votes1
answer93
viewsClone element by changing name value
Example scenario I have a form which it possesses in the name, 2 specific values: X[Y] X is a reference to the vision code, and Y concerning the field of my vision, and the value of input, shall be…
-
1
votes0
answers16
viewsCustom mask does not work on jqGrid
I need to insert a phone mask, CPF, CNPJ in some columns of jqGrid, but it doesn’t work at all!!! I have already followed the example in documentation, I checked in various websites and nothing.…
-
1
votes1
answer581
viewsInput with monetary mask jQuery Mask plugin from Igor Escobar
I implemented the jQuery plugin for masks in form fields developed by Igor Escobar, it is working correctly, but it occurs that when entering numerical values from 1 to 99 take the focus of the…
-
1
votes1
answer106
viewsRecovers input value and compare with jquery value
I have this code that retrieves the value entered in the input and compares it with a value x, in this case 25.00. The problem is that when I change the field inside the form it shows the error…