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
answer24
viewsRedirect to a page through a post
People needed to do the following I have a page made in pure html and in it I have an area where the user can put his email and ask to register it. Ai wanted to take this email from inoput text and…
-
0
votes0
answers64
viewsCheck whether the checkbox is checked or unchecked by loading the page and changing the class to enabled
Through the Storage location I can always keep the checkbox active or disabled even if the page is reloaded, the problem is that I could not validate if when loading the page the checkbox is checked…
-
0
votes0
answers120
viewsProblem validating form data (nodejs, express, jquery and handlebars)
I have a problem in Nodejs when it comes to validating a form. I want, if there is an input incorrectly typed, to be shown an Alert pro user (without leaving the form route). For this, I put an if…
-
0
votes3
answers359
viewsHow to move elements in HTML
I’m developing an application and I don’t have much knowledge about HTML. I took a template straight from the bootstrap site and am making some changes to look the way I want, but I’m having the…
-
0
votes1
answer43
viewsHow to use a mask in a dynamic textbox?
I need to implement a mask (value) in n Textbox fields (defined by n periods x n contracts) within a grid, where they are generated dynamically. I use jQuery for static textboxes (Autonumeric). But…
-
0
votes2
answers205
viewsChanging the value of a variable when selecting an option
In my product table, I would like to make some basic filters, such as sort by alphabetical order, price, etc... The idea is as follows, when the user selects a option (does not necessarily need to…
-
0
votes1
answer57
views -
0
votes1
answer561
viewsHow to redirect to another page with the Back button
I need to "replace" the function of the browser back button, so that when the user clicks it is redirected to a page. I’m already using a snippet I found but its operation is not very consistent,…
-
0
votes1
answer92
viewsHow to get this.data from an input with onkeyup
I need to get the data of an input with javascript. In this way, I created an up-to-date function. function atualizaAdicionados(e){ console.log(e.value); console.log(e.data('id')); } <input…
-
0
votes1
answer58
viewsInput mask does not work in dynamic fields
I’m using the library mask to format values, percentages, etc. I have a field carga_imposto (type %), and other carga_valor (type 0.00), which can be added dynamically via jquery. To add, it works…
jqueryasked 4 years, 8 months ago Sr. André Baill 6,946 -
0
votes1
answer33
viewsProblem when displaying content and changing the view
I was with a problem regarding how to pass the data to the front and change the visualization of such information, after giving a search, I gathered some things I was researching, it was very…
-
0
votes1
answer108
viewsjQuery Form Serialize does not work
I got the following jQuery function doPay(event){ console.log('submetendo pagamento....'); event.preventDefault(); if(!doSubmit){ var $form = document.querySelector('#pay'); console.log('criando…
jqueryasked 4 years, 8 months ago Sr. André Baill 6,946 -
0
votes1
answer42
viewsExchange the value of a radio button input for the differentiated value typed by the user
Good night, I have a problem, I am creating a donation form and I need to create a radio input with differentiated value that the user would type it. Ex: <form action="#" method="post"…
-
0
votes1
answer31
viewsPick id dynamic value - Jquery
I am using PHP with AJAX. I need to take a multiple Forms id and run a function in AJAX. I am passing the ids of the Forms like this : <form id="formItem<?= $idItem ?>"> However, in…
-
0
votes1
answer47
viewsChange the visibility of a DIV based on the value of two select using jQuery
I have 2 select options. If the option of select1 AND the option of Select2 is selected, nothing appears. Otherwise a form appears. HTML <div class="form-group" style="color:black"> <select…
-
0
votes2
answers82
viewsJquery - How to get text inside <p> and change
I want to change the text inside the <p> but without Jquery query class or ID only the text. I tried to do something with this but it consults the class on <p>…
-
0
votes1
answer68
viewsBrowse a list with each in Jquery
I’m having trouble individually opening each option on that list to show the corresponding information for each item HTML <ul class="lista"> <li class="item"> <strong>Item…
jqueryasked 4 years, 7 months ago user152996 -
0
votes0
answers22
viewsAssign a Jquery function to a Vue.JS component
I need to assign the following function to a Vue.js. component.: https://easymei.com.br/ja-sou-mei/ $(window).load(function() { function fixedSection() { var imageW =…
-
0
votes1
answer16
viewsLocalstorage, jquery and CSS
I’m saving the font size on localStorage and recovering to set after the page is ready, I am not able to set using the value recovered in localstorage, to set the source I am using jquery, follow…
-
0
votes1
answer204
viewsOpen modal bootstrap and ask for password confirmation, if password is right, call another modal
I am asking the confirmation of a password for the user, in case the password is right, call another modal with other options, wrong case, display that the password is wrong. I don’t think I know…
-
0
votes1
answer37
viewsI need help to create a condition to calculate the quantity of the product
The code below is with the function of adding the item by checkbox, need help so that it was by quantity, in the case of input in which the user will insert the quantity and calculate according to…
-
0
votes2
answers190
viewsHow to disable required when your input is not visible
I already apologize from now on if I can not be clear enough, but I needed to make a form that when they marked certain checkbox, would appear Ivs that would be hidden with the particular content to…
-
0
votes1
answer31
viewsJquery replaceWith deletes element when exchanging in several places
I’m having a problem with the function call replaceWith of Jquery. I have a variable that is storing an HTML structure, this structure I want to render in several different places (this works when I…
-
0
votes0
answers32
viewsHow to set the date in Jquery UI month and year inputs?
Good afternoon guys, I created a Jquery UI datepicker for months and years (only) as follows: $.datepicker.setDefaults($.datepicker.regional["pt-BR"]); $(datePickerId).datepicker({ changeMonth:…
-
0
votes1
answer41
viewsGet value for select JS/PHP
I’m in doubt. I have a questionnaire where the user will evaluate some sectors. I have for example: <label>Higiene</label> <select class="form-control" required > <option…
-
0
votes1
answer121
viewsHow to change multiple div with same class with different values?
I have several Ivs with same class and different values. I wanted to select all of them, take each one’s value and add HTML to each with new values. With the code I made, I can take the value, turn…
-
0
votes1
answer37
viewsScanning JSON ...and repeating images
What’s wrong with that code? In the first item of the catalog has 2 images, and in the second item has 1 image (JSON). But on the page when executed it shows the first item with all 3 photos and the…
-
0
votes1
answer43
viewsHow to use special characters to select an element using jQuery?
I need to check if a input type=radio was checked with jQuery to pass to the next step of the form. My function for this was already working, but I needed to transform the name of checkbox in array…
-
0
votes0
answers21
viewsjQuery is not defined joomla
I have a code for the anime of my joomla site using jQuery, however I noticed by the inspector that a few days after the php version update, these animations stopped working and this error appeared.…
-
0
votes1
answer415
viewsSend form without refresh and bring results to the same page
I need to submit a POST form to make a query on a PHP page (dashboard.php) and return the results of that query, on that same page of the form (refresheless), how could you do? I imagine I’ll have…
-
0
votes1
answer112
viewsDivs of the slider Slick.js being shown on loading
When I try to put Slick.js on my site, the loading of the Divs inside appears one under the other and then hidden, about 1 second, how do I solve? Aqui o código: <div class="carousel">…
-
0
votes0
answers26
viewsNew elements do not work a function - Jquery
Good afternoon! I don’t have much experience with jquery, so I’m having problems. I’m creating a new element when I click on a button. $('#tbody_6').append('<tr…
-
0
votes0
answers20
viewspushState and popState, poor performance
I am wearing it. load() to have asynchronous requests, but I realized that when I click on the arrows to go and come back nothing happened, I decided to search further and discovered the History API…
-
0
votes1
answer48
viewsCloning modified element with jQuery
In a reference HTML table, the tag <tfoot> is accessed and has its data modified [not included here because it is working], and when using the method .clone() jQuery to create a deep copy for…
-
0
votes2
answers73
viewsAdd paragraph with jQuery
Good evening, I’m trying to add a paragraph when you clicked the button but it’s not working and I can’t figure out why, someone could help? <script> $("#btAdd").click(function(){ var texto =…
-
0
votes0
answers40
viewsChange one or more value of plots, and automatically recalculate the other fields
I changed the way I wanted, but now I’m having problems with actual formatting! Example link Follow the changed code <script src="https://code.jquery.com/jquery-1.11.3.js"></script>…
-
0
votes1
answer126
viewsHow to Send Data from localStorage via AJAX to PHP and save them to an HTML file
I want to send the data saved in Localstorage with PHP to a file or to a database not necessarily need to be PHP code need some solution for this <h2>Likes</h2> <p…
-
0
votes1
answer279
viewsHow to format a field from a Jquery Datatable to Money format using the Jquery Mask Plugin?
I need to format the fields of a DataTable jQuery for currency format, while loading the Datatable, but I’m not getting it. I’m using the Jquery Mask Plugin: { data: 'ValorParcela', title:…
-
0
votes2
answers29
viewsHow to return the status "success" and other items in array in wordpress in admin-ajax.php
How to return an array in ajax wordpress: javascript $(document).on("click", "[data-show-home-list-series]", function () { var id = $(this).attr("data-show-home-list-series");…
-
0
votes0
answers22
viewsDo texts loaded via Jquery harm SEO?
I’m developing a website, but for technical reasons I won’t be able to use a database and no server side language. As the system will have MANY posts (more than 500), I am loading this via Jquery,…
-
0
votes1
answer64
viewsReplicate string in a certain part of a text (javascript/Jquery)
I have a text and would like to replicate strings in a certain part of this using javascript or Jquery Text = Jn 3:16; 7:1,3; 3:20; Mt 2:3,5,2-7; 3:1; Lk 2:1; 3:12 What I’ve got so far: Jo 3:16; Jo…
-
0
votes1
answer43
viewsUpdate input value with Bootstrap touchspin
I’m used a input "quantity" which multiplies the value of the input "unit value" and updates the input "total value". So far working all right. So I started using the bootstrap-touchspin : <input…
-
0
votes1
answer27
viewsFeed div that were dynamically created
In Jquery I am creating Ivs dynamically like this: var totalLoop = 2; var escreveReceitas = ''; for (i = 1; i <= totalLoop; i++) { escreveReceitas += '<div class="produtos_titulo"…
jqueryasked 4 years, 5 months ago caiocafardo 1,897 -
0
votes0
answers24
viewsSend file together with data in AJAX
Hello, I want to send a file in the form, along with other inputs via AJAX, so there is no refresh on the page. However, when sending the form, nor the file, as the data is coming in MYSQL, just…
-
0
votes1
answer67
viewsJquery to open PHP loop div
I have an application that lists registered tasks for each user, and this is in a while PHP loop that has a fetch array with mysql to create the list. The problem is on the button that expands the…
-
0
votes0
answers13
viewsMultiple forms ajax(jquery) request running only 6 times
I am trying to send multiple forms with ajax and jquery but it is sending only 6 forms. Here is the code Jquery: $('form').each(function(){ var values = $(this).serialize(); $.ajax({…
-
0
votes2
answers38
viewsFind an input value within an AJAX loop
I confess that I have been for a while in this small challenge, I am developing the cart part in my Ecommerce. The goal is to display a message, the user click on "Add to cart" of a particular…
-
0
votes0
answers18
viewsHow to manually initialize the jquery "selectable" plugin
The selection of the Rows from my datatables works perfectly (just click on the cells they are tarnished gray) when I use data-plugin="selectable" data-Row-selectable="true" directly in the html of…
-
0
votes0
answers134
viewsLoad external website inside a <div>
I saw some examples of loading content into a div, to specific project pages. But I’m finding it difficult with Jquery. For page loading it is common to use the function load() jQuery, which works…
-
0
votes1
answer40
viewsSend variable with Jquery Autocomplete function
I have a Jquery function, which when typing the product name, it searches the database and brings me an array of results via json, and with this result I fill the fields automatically. The function…