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
answer72
viewsForm submit with jquery
I have this function to check the state registration and CNPJ/CPF fields and if they are right it performs the submit, only that in the submit, he is not respecting the required of the fields…
-
0
votes1
answer109
viewsHow to set a background with Jquery
I am modifying a very old system panel and need to add a new div and set a color according to the return of ajax . setInterval('carregarProximo()', 3000); function carregarProximo(){…
-
0
votes3
answers1479
viewsShow input value by clicking the button
How do I show value I typed in input after clicking the button? mine always returns empty: var x = document.getElementById("usuario").value; var usuario = $("#usuario").value;…
-
0
votes1
answer43
viewsInput disable not found in serialize
If the form I have is validated, I disable the form, this way: $("#Editar :input").prop("disabled", true); But I have a function that serialize, and if I’m with the forms disabled, they do not find…
-
0
votes2
answers120
viewsDealing with Javascript objects
For each card registered, I redirect the user to his card view page and I list all the cards he has already registered. Every card has its nome, then for each card I create the layout and insert the…
-
0
votes2
answers409
viewsJquery function to select tab with required fields not filled
I use the tab of bootstrap and the required of dataannotations, but the following happens, not to know the required fields, when it is not in the tab of him, for example, I’m in tab 1, and I…
-
0
votes0
answers57
viewsFunction window.onbeforeunload
I have this function in my form But I don’t have one button submit, but I have a button that sends the data, and when clicking on it, it appears this Function message below, how can I put an…
-
0
votes1
answer120
viewsHow to make an animation start at the beginning of the process and only finish at the end of jquery?
I’m having some difficulties in Jquery, using Datatables, where by clicking select a value in drop-list and clicking the "search" button, it makes an ajax and updates the Datatables with the data…
-
0
votes0
answers26
viewsPhoto upload automatically with Jquery
I have a form where the photo appears as a preview when selected for upload: I would like when selecting the photo to upload automatically. How I would pass the values to the page alter-photo.php?…
jqueryasked 5 years, 12 months ago user24136 -
0
votes0
answers89
viewsI cannot run 2 javascript scripts on the same page
made a javascript script to add and cut an image of an input, the same worked perfectly, the problem is when I try to do the same for another file that is loaded on the same page, the first script…
-
0
votes1
answer375
viewsJquery HTML Currency Mask (no input)
Hello. I’m behind a coin mask made in jquery, but that applies directly to a span html tag, with a specific class. What else I have found in my searches are input masks for forms, which is not the…
-
0
votes2
answers165
viewshow to clear an attribute in html by javascript
I have a problem in my code where it takes a bank value related to the value of the combobox selected by the user and fills in another combobox, until then it is working but when the user gives an…
-
0
votes1
answer285
viewsMask using flask does not load
This is the header: <script src="{{ url_for('static', filename='jquery-2.1.4.min.js') }}"></script> <script src="{{ url_for('static', filename='main.js')…
-
0
votes0
answers37
viewsI built a playlist of videos in jQuery and it is working, but not as expected, where is the error?
I am an industrial designer (designer and illustrator) by training and I am not a programmer, but I like to learn about technology and programming. I built, with the help of jQuery tutorials on the…
-
0
votes2
answers44
viewsAlert de Sucesso
I have a modal to mark friends, when the user clicks to mark, I call the onclick that makes the request to the controller. I want to send a message of success to the user, I have a div with None…
-
0
votes1
answer39
viewsHow to Create a filter between two dropdowns using jquery
I have two dropdowns (state and cities) in select "status" I have the options of two states ex: <select name="state"> <option value="NY">New York</option> <option…
-
0
votes1
answer70
viewsSerialize form does not take the table
I have this function to check if something has changed in formulário, apparently it worked perfectly: $(function () { var init_form = $('#editarproduto').serialize(); $(':submit').click(function ()…
-
0
votes1
answer31
viewsNan error when using datatable sorting
I’m trying to create a date ordering in a dataTable where the format will be dd-MM-aaaa hh:MM:ss. the code below even works the problem that it gives some conversion error always at the first value…
-
0
votes3
answers377
viewsOnclick to display result
I took a code that when something is typed in the input, it loads the data without refresh on the page, only that I wanted to do it through button, thus avoiding bugs. I’m not able to convert the…
-
0
votes1
answer85
viewsShopping Cart (checkout) keeping only the last value
all right? I’m working on a project with Laravel PHP framework for back-end and jQuery for front-end. I’m setting up a ticket checkout for football stadiums for a system I’m developing. I have…
-
0
votes1
answer61
viewsJquery script only works after page re-load
I have a jquery script that only works after page re-load. Why does this happen? My script: $(document.body).ready(function() { $('.list').each(function(index){ var topli =…
-
0
votes1
answer311
viewsFilter jquery list with checkbox
I have this function that filters a table, as the selected field and what was typed in the input, and works. function myFunction2() { var input, filter, table, tr, td, i, filtro; input =…
-
0
votes1
answer43
viewsHow to insert an item before and outside another item?
How to insert an item via Jquery so that it is BEFORE and OUT of a specific item (accepted edits to improve the way you ask). The following example inserts before, but inside the item…
-
0
votes1
answer51
viewsHow to make the slider not catch the last element?
I would like to know how to solve the following case. I have a structure like this: <section class="portfolio slide" id="portfolio"> <h2>portfólio.</h2> <div id="foto">…
jqueryasked 5 years, 11 months ago Matheus Guedes 3 -
0
votes1
answer128
views -
0
votes0
answers70
viewsWhat does callback.call mean in jQuery?
I’ve searched everywhere but can’t find an exact definition. Follow my function and the snippet of my HTML where Dropdownlist is created: function carregaSubCategoria(valor) { $.ajax({ url:…
-
0
votes1
answer227
viewsError finding cep with jquery via cep
Speak personal, I am developing an edition page where on this screen contains the user data, in the same, we have a new address button, when clicking it opens a modal with the address fields (zip,…
-
0
votes1
answer136
viewsVertical slider with picture list in jQuery
I have the following list of images and videos that are being pulled from the database. I would like that "ul" to keep climbing the items infinitely in a vertical slider. Don’t know much jQuery,…
-
0
votes1
answer68
viewsReturn not working on Function
I have this function, but the return does not work in it, I do not want it to leave it, until it conforms to the function: if ($('#FreteComprador').prop("checked") == true) { var id =…
-
0
votes1
answer109
viewsInput field selection with Jquery
all right? Can you give me a help related to the selection of text typed by a user in a form? I’ve tried some solutions I found here, but they didn’t work. I’ve also tried different approaches with…
-
0
votes1
answer295
viewsChange logo image when from navbar-inverse CSS class
Inside my HTML on page I have a div of header that changes the css when scrolling the page to a given pixel. I can change the colors of the bar and the text but cannot change the logo image How do I…
-
0
votes1
answer119
views$. post does not work
I created a Javascript code to receive a JSON, but when the data arrives in the $.post the code stops being processed. I found that in php the JSON file is populated correctly before it is sent to…
-
0
votes1
answer437
viewsTaking information from a JSON and saving it to SQL Server using Javascript
I have this code, which returns the information I want and shows on the page. Now I would need to save this information to an SQL Server database, as this would be possible? This is very difficult…
-
0
votes1
answer88
viewsDoubt to take the name of an automatically generated php input field
I have a legacy system in php that generates the input radios, and the names of these fields are dynamic, such as the $Row object. And now I need to take the values of the radio fields and their…
-
0
votes0
answers77
viewsGet id via URL in JS sent by PHP
I have a code that plays an ID in HTML for a link: <a href="javascript:confirmacao(<?php echo $row['idfoto'] ?>)"> <i class="fas fa-trash"></i></a> Already in…
-
0
votes1
answer552
viewsHow to get the link from a specific bootstrap tab
I have a page that uses the Tabs navs of bootstrap 4.1, I’m looking and I can’t find a solution, I want to make sure that by clicking on a link it opens a specific 'tab' of the bootstrap. In this…
-
0
votes0
answers35
viewsProblem when exchanging image with jQuery
Well it’s like this, I have the following code: <script type="text/javascript"> document.addEventListener("keydown", keyDownPress, false); var valoresDigitados = []; function keyDownPress(e) {…
-
0
votes2
answers54
viewsPicking up data json
I created a json with the data from a journal that I maintain, only now I have to create a separate entry by the proper category, by author, and the other fields, I was able to get the general data,…
-
0
votes0
answers52
viewsLoad information into modal inputs based on id sent by clicking the data-id link
Using the bootstrap documentation, made a change of a href for button <button type="button" class="btn-a" data-toggle="modal" data-target="#EditaFoto" data-whatever="<?php echo $row['idfoto'];…
-
0
votes2
answers36
viewsDifferent titles for each slideToggle
I would like to change the code I have here, so that instead of appearing "Reveal Content" in all lines of the slideToggle, I can put each one with a title, for example " Revision 1", then the next…
-
0
votes2
answers197
viewsHow to change image when changing status in Mysql database without refresh with jquery
I have the following listing: How would I make it so that by clicking on the exclamation icon, I changed it to the check icon and vice versa and changed the status in the database as well? PHP/Mysql…
jqueryasked 5 years, 11 months ago user24136 -
0
votes1
answer1055
viewsAlphabetizing an object array
I have an array of objects and want to put in alphabetical order but I’m not getting by javascript, I’ll put as the array is structured and the code to call on the page var json = [ { "ID":"1",…
-
0
votes2
answers307
views -
0
votes0
answers48
viewspopular table from a combo - jquery / json
Good afternoon! I need to populate a table from the onchange of a combo, via jquery. The problem is that I am unable to manipulate the JSON object that PHP returns to me. Does anyone have any hints…
-
0
votes0
answers441
viewsUncaught Typeerror: e.map is not a Function
I’m getting the following error, could help me ? Uncaught TypeError: e.map is not a function at t.setResources (scheduler.min.js:8) at scheduler.min.js:8 at scheduler.min.js:8 at cal-init.js:218 at…
-
0
votes1
answer47
viewsHow to fill table with information from a database?
So my people, first of all, I’d like to say that I’m a beginner and I started learning this week so take it easy on me, please u.u So I’m going through a test site here and I have the following…
-
0
votes2
answers149
viewsJquery - Multi-line Viacep autocomplete
I’m using Viacep’s Webservice to do the street autocomplete on my registration form, but it’s a form where 20 lines, each line contains: ZIP CODE + STREET OF THE CONDOMINIUM when filling the zip…
-
0
votes3
answers1858
viewsHTML does not recognize jQuery (imported or internal)
I’ve researched several topics and I haven’t found the problem. Simply put, the functions I use in jQuery, such as tooltip and Mask, do not work on my page, and by giving F12 in the Chrome browser,…
jqueryasked 5 years, 11 months ago Weslley Fillipe 161 -
0
votes1
answer52
viewsQuestion with logic to select div
I have the following problem, when I click on a div the same should be with the background-color black and the color of the color that really is the background, until then it is working normally,…
-
0
votes0
answers45
viewsFilter function returns Undefined - Jquery
Hello! Can someone tell me what’s wrong ? Using the filter function, I am seeing a Undefined return. Javascript var enum_toastr_type = { success: 1, info: 2, warning: 3, error: 4 } /***# PAGELOAD…
jqueryasked 5 years, 11 months ago Wagner Fillio 1,328