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
-
0
votes1
answer75
viewsProblem capturing event scroll in iframe in iOS Safari browser
I’m having trouble handling the scroll event from an iframe using Javascript/jQuery in the iOS Safari browser. I was initially trying to catch the scroll event, but it doesn’t work. Searching, I saw…
-
0
votes1
answer126
viewsInsert HTML code block with javascript
Despite being new to the forum, I follow here for a long time and is always a great source of knowledge. But I do have a problem that I haven’t been able to solve yet. I am creating an occurrences…
-
0
votes1
answer135
viewsAutocomplete taking data from a json of a url
I have this jquery <script> $(document).ready(function($){ $('[id="franchise"]').autocomplete({ source: "/ajax_calls/search/", minLength: 3, open: function(){ setTimeout(function () {…
-
0
votes1
answer240
viewsEnable button when fields are filled in
I know there are already some topics with the same theme, but my case is a little more specific. I have a form with some hidden fields that only appear according to the change of some selects. I…
-
0
votes1
answer425
viewsHow to send data array to Asp.net core controller
I have a screen where I have the registration of some items, in my control I am receiving the data of the array, but it is coming empty. I already tried some options here on the forum, such as…
-
0
votes1
answer37
viewsCreating getFullYear with javascript
Good afternoon guys. See if you can help me with something. I need to generate a data list. Manufacturing Year and Model Year. I did it this way: var i; for (i = new Date().getFullYear(); i >=…
-
0
votes1
answer33
viewsHow to use attr(Selected) in a dynamically created option?
I have a table dynamically created and within it a select in which I use a map to create your options. json.map(item => { var corpo = ''; corpo += '<td>'; corpo += ' <select>';…
-
0
votes2
answers112
viewsSearch with Jquery filter
I have a Select, and a search field, which searches everything within a table. <select class="custom-select col-12" id="selecionarOrgao"> <option value="">Escolha o órgão</option>…
-
0
votes1
answer169
viewsKeypress event does not work after $.get() request
I’m developing a php system and I’m using Jquery for Client Side requests. I have a simple routine for processing inputs that does not allow the user to type a non-numeric character. The script…
-
0
votes1
answer41
viewsError in listing filter with php and jquery
I was trying to make a list filter, I would like every time that the select changes its value to update my table, but there’s an error that I can’t find, when starting the page or changing the…
-
0
votes1
answer53
viewsDisable the unselected options of multiselect with jquery
$('#columns-selected').change(function(){ let menu = []; for (i=0; i < 5; i++){ let opcao = $('#columns-selected option:selected')[i]; if (opcao){ menu.push($(opcao).val()); }; } $.ajax({ method:…
-
0
votes2
answers396
viewsUse LIMIT in a Datatable
Good morning! I’m having a little trouble, because I’m a layman on the subject... I use a DataTable to display some records, whenever I enter a given page, give F5, the table "delay" to "compress",…
-
0
votes1
answer33
viewsUpload Images
I’m having a problem uploading images from a file(folder) to the web page. When you start the page, only two images are loaded, the others fail! I’m using Javascript and Jquery, css/html. var…
-
0
votes1
answer45
viewsLoad using Target
I am trying to refresh only in part of the content, so I want to use Jquery with Load method. But I would like to use data-target="name" and load inside the HTML code LI. There is the possibility ?…
-
0
votes0
answers14
viewsHow to delete specific class after seat deletion return
I’m trying to eliminate a class after deletion in bank, in the script I had deleted li with this line here in my code: $el.parents('li').remove(); But my need is another, when returning from a…
jqueryasked 4 years, 11 months ago adventistapr 5,498 -
0
votes1
answer138
viewsTake the value of the "data-" attribute with jquery
Good afternoon, I am doing an html + js activity (with jquery), I need to get the value of the attribute "date-" when the button is clicked. Follow the code: html: <table id="table" class="table…
-
0
votes2
answers49
viewsText-Align in table with MPDF
Good evening, everyone. I am using summernote to create/manage texts, and Gero pdf using the MPDF library. However the alignments, (left, center and right), when used from the cells of a table, are…
-
0
votes1
answer153
viewsJquery and JSF - format masks for text fields
Good evening, I’m doing a college job and I’m wearing shades for decimal fields in my text field, where I have to validate with an accuracy of 4 houses too much at most, I put a mask with the…
-
0
votes0
answers57
viewsTransforming Code into Ajax Jquery for Pure Javascript
Hello, everybody all right? I’m creating a pagination system. However, the pagination system is the only system of the site that is using Jquery. That is, it is loading an entire library, affecting…
-
0
votes2
answers69
viewsHow to make a link of the child element open when clicking on a div?
I have a list of posts on my blog homepage. I’m trying to make sure that when you click on the white space (where the summary of the post is), the link of this same post is opened. That is: instead…
-
0
votes1
answer42
viewsJquery - My What doesn’t work more than once in this animation. What can it be?
I created a function that when the mouse went over the DIV, it would make an animation by inserting and removing classes. But what I don’t understand is that the animation that’s inside the Queue,…
-
0
votes1
answer61
viewsHelp with using $_POST in PHP
Hello, I’m having the following mistake: Notice: Undefined index: dataInicio in C: xampp htdocs Dashboard Dashboard.php on line 124. Apparently I’m not making the right use of the $_POST, but I…
-
0
votes1
answer90
viewsHow to use . click on jQuery after return from ajax
I have an ajax function that returns content with a button. I would like to call another function triggered by the button that the ajax returned, as in the example below: <button id="procurar"…
-
0
votes0
answers78
viewsTransform html form with json list with jQuery or js
I want to get into the following json to submit my API. { "Ticket":"123456", "toDoList": [{ "Server":"123", "UserName":"asd", "Password":"asd", "File":"" }, { "Server":"123", "UserName":"asd",…
-
0
votes1
answer137
viewsSend Array in an input as string for javascript php
Hello! I would like to place an array of objects inside an input and send to php using the Jquery mounted form At the moment I’m testing like this: My object const myObject = [ { id: 1, nome:…
-
0
votes1
answer61
viewsTable color yes/ color no by jquery
I need to change the color of the table row according to the date that appears. Equal dates need to have equal colors. It is system that registers when the employee hits the point. data_inicial =…
-
0
votes2
answers148
viewsImmediate sum within input - Javascript
I have a sales system, where the administrator marks the checkbox of the products that want to sell, soon after appears an input to enter the desired quantity, and at the end of the sale, is…
-
0
votes1
answer180
viewsHow do I dynamically return data from Mysql columns in each update form input?
Description First, the field Seleciona jogo returns all registered games (This field works as the selection of the game ID to update given game) and what I would like to know is how do so that the…
-
0
votes1
answer13
viewsAjax updating another request
I have this ajax request that brings comments from a file (.php) TOGETHER WITH A FORM AT THE END to insert more comments: //carregar comentarios…
-
0
votes1
answer42
viewsHow to scroll a <ul> list to my specific <li> after selecting an item that loads the page again?
I have a list <ul> with several <li>, when an item is selected this <li> receives a "Selected id". <ul id="lista-produtos"> <li>produto 1</li> <li>produto…
-
0
votes1
answer111
viewsFormat value received in JSON C#
After returning the value to my form, I want to format it to show the decimals correctly. I’ve made several attempts using jQuery Mask, but I haven’t had any success. I appreciate if anyone can…
-
0
votes0
answers106
viewsHow to click on two different '<div>' at the same time on mobile devices?
I’m creating a website to play musical notes and for that I need to click multiple buttons (Divs) at the same time, but when I do this nothing happens, only when I click one button. On the computer…
-
0
votes1
answer105
viewsInfinite preloader
I applied a preloader to a website but he "won’t hang up" so to speak. $(window).on('load', function () { $('#preloader .inner').fadeOut(); $('#preloader').delay(350).fadeOut('slow');…
-
0
votes0
answers39
viewsDisplay data from BD as you select a select option
I have a system where the user will register the information as below: Note that the registration includes suppliers. This data will appear in another form as below: I would like the user when…
-
0
votes1
answer165
viewsjQuery Ajax File Upload error serialize
I am implementing an upload system in my system but am not able to recover the upload data via jquery serial when I pass the data without input file it works normal and does not present me error.…
-
0
votes2
answers340
viewsHide elements but display some child elements with Javascript or Jquery
Talk, you guys, baby? I am making a page that displays a contract for the person. There are some fields that can be filled. But as it sometimes gets long, I’m trying to make a simplified mode, which…
-
0
votes1
answer43
viewsDynamically change CSS variable within an iframe
I have the variable within the iframe defined like this: :root { --color_bg: #ffffff; } I want to change this CSS variable from the outside, already tried: $(function() { setTimeout(function(){ var…
-
0
votes1
answer36
viewsError in image transition effect
I created a page with transition effect in the image with jquery and Javascript based on a tutorial, but when adding Jquery and javascript do not appear images. Follows the JS code:…
-
0
votes1
answer49
viewsAdd and subtract checkboxes
I have this group of inputs and I need that when marked they add the values and when cleared subtract <div class="servicos" style= "justify-content: space-around; padding-left: 50px;"> <div…
-
0
votes1
answer37
viewsCalling a function when another ends
I need to call a function in jQuery, but it has to wait for another function to finish, because it depends on the result of the first function to work. I’m using the jQuery. Follow the first…
-
0
votes0
answers185
viewsHow to activate autoplay with sound in any browser?
Hello. I am working on a website and I would like a background sound to start playing automatically when I open the page. However, it seems that Google has been censoring anything that brings…
-
0
votes1
answer140
viewsCopy an option from one select to another with jquery
Guys I am trying to copy the options from one select to another using change, but when copying is passing the value of the option I selected and the text of all the options of select at the same…
-
0
votes1
answer15
viewsError printing Owner.screenname and Owner.url (Dailymotion Data API) property value
When running GET for PLAYLIST and VIDEO resources, I had a problem. When running GET on my console, the request correctly returns the values of the Owner.screenname and Owner.url attributes;…
-
0
votes1
answer64
viewsHow to select all options from a select to submit?
I am unable to send the selected options when I enter the code below. Out of code is working. the page receives information and assembles the box according to the requests that came, so it is…
-
0
votes2
answers70
viewsFadein and Fadeout in sequence
I have a challenge that I need the Divs to appear in sequence, one after the other. To do this, I created a loop that performs the functions of FadeIn() and FadeOut() for each DIV element of my…
-
0
votes0
answers55
viewsJavascript/jQuery - setInterval stopping execution of other Javascript functions
I’m facing a problem that’s driving me crazy already. It’s like this. I am capturing json data from an external server on cross-Omain, I need this data updated every 5 seconds. I was able to loop…
-
0
votes1
answer23
viewsI want to hide the small
I have a select that has one with descriptive text. I need it to be hidden when you click the select and open the list of options, but it will be visible again when you click the select, or one of…
-
0
votes2
answers95
viewsSlider stands over the submenu
Guys, are you okay? I’m using the Nivo slider of jquery and I also made a menu with submenus, but when I hover over the menu to appear the submenu, this slider of jquery is on top, the submenu that…
-
0
votes0
answers22
viewsJquery Do not load in wordpress (multiple form show user before submitting)
Good, I have a script on a Wordpress page (which is not running) where I am submitting a form with files via ajax. I want to show the user which files are being uploaded and which the user can…
-
0
votes1
answer232
viewsDisplay input text inside a div
I want to get the text that is typed inside a input and apply it within a div at the same time as the user type the text. And you will also have a select to change the color of the text that will…