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
-
-3
votes1
answer35
viewsGenerate and delete rows from a table with Jquery
I made a function that generates lines in a table but I’m not able to delete them. Could someone tell me how I can add and remove every time I click the buttons? Function generating the lines var i…
-
-3
votes2
answers358
views -
-3
votes1
answer63
viewsImage upload from mobile with javascript
I’m creating a survey app with javascript or jquery. The app saves everything inside the phone itself, to then be sent to the server, because it doesn’t always have good internet signal. Example of…
-
-3
votes1
answer75
viewssetInterval does not stop after restarted
I’m trying to create a slideshow but customized without relying on third party library (save, jQuery); The goal is: The slide rotate endlessly. When passing the mouse on slide, he must stop; By…
-
-3
votes1
answer29
viewsMy Flexslider video is starting automatically, but I don’t want it!
Eae you guys, beauty? I’m going through a problem implemented a video slider on a website I’m doing, but this slider is playing the videos contained in it automatically, and I don’t know how to take…
-
-3
votes1
answer626
viewsChange the action value inside the form
I have a code with a "form" and I have two buttons that I want you to direct to different pages. By clicking the finish button I would like the "action" to be action='envio1.php' and by clicking the…
-
-3
votes1
answer161
viewsVerification of videos per user
I’m developing a website to show videos inserted by users. For that I did with you: $(document).ready(function () { var videoContainer_monitor = $("#video_monitor"); var codigoVideo_monitor =…
-
-3
votes1
answer17
viewsLoad html only 1 time after 3° paragraph of jquery text?
I have this example but I would like you not to repeat, I would like you to appear only once! $('p').each(function(i) { var pos = i + 1; console.log(pos, pos % 3, this) if (pos % 3 == 0) {…
-
-3
votes1
answer45
viewsRetrieve specific part of a javascript object in an AJAX function
I need to retrieve an object attribute by AJAX in a $.each(), and pass it in src of an img tag. AJAX function: $.ajax({ type: 'GET', url: `user/album/recommended/`, context: 'json', success:…
-
-3
votes2
answers75
viewsHow to hide Divs from onClick event in input
with a doubt of those. I’m remaking a page a medical site where has a search engine diseases by the letter index,A,B,C,D,E............ On the page, there was a space for the search buttons, I’m…
javascript jquery html5 bootstrap-4 javascript-eventsasked 4 years, 7 months ago Pedro Henrique Silva de Deus 3 -
-3
votes1
answer92
viewscreating shopping affection using jquery
**so I’m making a shopping cart and I’m with the following poblema as you can see the low,when I have only one item in the cart I can add with button + and remove with button - *? **the poblema…
-
-3
votes2
answers49
viewsInput cursor going to end of line with jQuery and propertychange
For example, I fill in the input of this fiddle with "Ste" and then go back to the beginning of the input to type "te" before "Ste", it goes to the end of the input when I type the first character…
-
-3
votes1
answer115
viewshow do you take a jquery value and store it in a variable?
I’m looking to make a sum of all the notes with input, added by JQuery,I just can’t get values from JQuery when I press the button +, wanted to know how I can take the values of JQuery when I press…
-
-3
votes1
answer64
viewsHow to Store Data from this Code?
/It is to take the data that are appearing there example when you click on the button appears the time and amount of clicks I want to take these two information and store anywhere that of to store…
-
-3
votes1
answer58
viewsAJAX AND XHR FALIED REQUEST PROBLEM
I have an application on Node.js in an Ubuntu VPS 18.4, but when trying to make a login request for testing, I get a Google Chrome error; "net::ERR_CONNECTION_REFUSED". He tells me he had some…
-
-3
votes1
answer30
viewsString pick up sentence text
I have a phrase the following random phrase: Pineapple, pear, apple and wanted in the variable var str = pick up my random phrase <div class="page-header"><h1>Abacaxi, pera,…
-
-3
votes0
answers27
viewsSELECT2 is not returning pre-selected item value
When changing a Select2 option, it is returning all the data correctly, but when I go back to the previous option (which was already selected), it is not searching the values correctly. Exemplifying…
-
-3
votes1
answer35
viewsdata return with Jquery (AJAX) and PHP
I’m trying to learn AJAX and I’m beating head here I want to return the data via AJAX and display, but my code is not returning anything const caixabusca = $("#caixabusca"); const form =…
-
-3
votes1
answer42
viewsI can’t get edited text from the input in a data-table to update the database
I am trying to update using a data-table, this data-table is by default disabled for editing, and on each line has a button named 'Edit' when clicking the button on the line and enabled for editing,…
-
-3
votes1
answer33
viewsassync does not work in ajax
I’m trying to use async to return the amount the bank will bring, but it’s not working async function emailExi(email){ const teste = await $.ajax({ url: "../banco/emailexi.php", method: "POST",…
-
-3
votes3
answers105
viewsHow to create listeners for multiple elements in a loop?
My code is very repetitive, I want to use a loop to solve this, but I don’t know how to do it. $(document).ready(function() { //Atribui aos campos de código do Pokemon a função que carrega os dados…
-
-3
votes1
answer37
viewsAccess JSON that content is an object - Javascript
I am "pulling" a json into my code whose content is an object within an array. My goal is to take each attribute (news and title news) of the object and insert it into html. But the return I have in…
-
-3
votes1
answer62
viewsCalculation of additional in percentage with jQuery
I am mounting an additional calculator for a product, but the additional ones are calculated in percentage. For example: If the product is R$ 50,00 and is marked the checkbox that adds 40%, should…
-
-3
votes1
answer66
viewsDynamic mask for CPF, CNPJ and CEI fields
Hello, I looked for this doubt in the questions, but I could not find it. Well, I would like to make a field to have the masks of CPF and CNPJ and CEI. depending on the number of characters typed.…
-
-3
votes1
answer47
viewsHow to return data from a Jason, within PHP, via Jquery?
I’m having trouble returning information via Ajax. It has to show the results in a alert(). The problem is that I am trying to return this data from a PHP file that creates a array() and then use…
-
-3
votes1
answer20
viewsSend more than one checkbox value using Jquery.Multiselect
I was able to send the values of a checkbox to the controller using the function below: function InformacoesAdicionais() { var listOfRegiao = []; $.each($("#select-regiao option:selected"), function…
-
-3
votes1
answer55
viewsHow to simplify the code and not repeat so many inputs?
Hey, guys, come on. I needed to create a + button in a form for the user to click and add, up to a maximum of 10 fields. I could, but I couldn’t get all the data from the form. The database only…
-
-4
votes1
answer81
viewsDoubt about jquery code
People is like this when the user clicks on the red div that is the div_2 it would disappear and appear the green div that is the div_1, but this giving an error the red div is not disappearing.…
-
-4
votes1
answer440
viewsMultiple buttons share from facebook, twitter and G+ on the same page
I have a page that contains multiple posts and need to put individual share buttons on each post. Take an example: In this site we can see the scenario similar to what I want to do…
-
-4
votes2
answers1623
viewsCapture table elements with jquery
How can I click elements of a table that is being dynamically filled with jQuery? I want when it clicked pain to be marked only 1 row of the table. I only managed to mark all. Here when clicking on…
-
-4
votes1
answer25
viewsURL disturbing ajax requests
I have a system that defines the url according to the link that the user clicks, and makes an ajax request and brings the content only that the url disturbs the request. For example: The user clicks…
-
-4
votes1
answer138
viewsHow do I get referrer from this script? I want it to open when I come from any site
Hello. I have a script, but it only opens when it comes from certain websites. How do I make it always open without having to referrer and keep cookies? Thank you since. function getCookie(c_name) {…
-
-4
votes1
answer211
viewsHow to Do This in Javascript (Listing Products by Category, According to Database)
I’m making an application to order is my TCC and I’m having difficulty.…
-
-4
votes1
answer345
viewsMark checkboxes as indicated on a JSON
I have a table with two rows and three columns all with a checkbox set. The idea is to mark as checked through a json string var rs = [{"cklist":"1;1;1"},{"cklist":"0;0;0"}]; whereas the cklist[0]…
-
-4
votes1
answer66
viewsI need to recover the title of the selected field in jquery!
For example by clicking on the td 'Silva', display the title "Last name" <pre> <table> <tr> <th class='title'>Nome</th> <th class='title'>Sobrenome</th>…
-
-4
votes1
answer236
viewsJquery and PHP validation does not work
Colleagues I have this form: <form method="post" name="form" id="formulario" action="javascript:func()"> <label>Razão social</label> <span class="color-red">*</span>…
-
-4
votes1
answer45
viewsJavascript errors
I’m having errors in Javascript in my code, at first there were more errors, but I realized that only change the order of bootstrap and javascript, so the errors decreased but there are still these,…
-
-4
votes1
answer23
viewsendpoint to filter post by custom taxonomy
So I’m developing a we app, and I need to filter the posts by taxonomy to look like this get below. https://usevida.com.br/site/wp-json/wp/v2/post_type?custom_taxonomy=result…
-
-4
votes1
answer63
viewsHow to open the gmail app on mobile
I know that to open the maps is like this: window.location = "geo:?q="+endereco; To open the phone dial is like this: window.location = "tel:"+telefone1; To open the message screen (sms):…
-
-4
votes1
answer193
viewsHow to feed a JSON using "for" Javascript
I have a json in Javascript: var cards = [ { name: "Opção 1", img: "images/opcao1.jpg", id: "1" }, { name: "Opção 2", img: "images/opcao2.jpg", id: "2" }, { name: "Opção 3", img:…
-
-4
votes1
answer52
viewsHow do I make a form modify words?
I’d like to put a text in a form and it turns into a "link", for example: login id 76561198281829407 Modify to: https://steamcommunity.com/id/76561198281829407 I need an example of HTML and JS or…
-
-4
votes1
answer2182
viewsRegular expressions limit number
With regular expressions, such as limiting a minimum and maximum number of a string. I have a field where I can add 1 to 4 characters. But the numbers should be from 1 to 1000. This way you cannot…
-
-4
votes1
answer42
viewsStylize Placeholder
if ($("#nome").val() === ""){ $("#nome::placeholder").css("color", "red"); $("#nome").focus(); return false; } My goal is set the color of placeholder for red if the name field is emptiness I…
jqueryasked 3 years, 9 months ago Carlos Rocha 1 -
-4
votes1
answer64
viewsKeep testing until a variable is created in php
I am sending an ajax to a table, but this table can only be created after receiving the value, but it is being created before in white, as I can make a check for the table to be generated only after…
-
-4
votes2
answers229
viewsValidation of javascript / jquery object?
I lost a little time with a validation in javascript and I got the doubt in my head: I need to know if an element exists through id. I tried a few ways and I was unsuccessful: //tentativa 1…
-
-4
votes1
answer327
viewsCall AJAX / jquery in the middle of PHP code
I have a PHP code structure and, within it, I want to automatically call a $.get AJAX for another PHP page. Example: <?php $cod = 1; $mod = 2; $text = 3; como chamar um ajax automaticamente aqui,…
-
-4
votes1
answer2228
viewsJavascript does not work :(
Good morning. I linked the javascript on my site as follows: script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"> and one of the codes is this, inserted just after the…
-
-4
votes2
answers43
viewsElement selector: Select above the tenth element
I have a list of Ids that are filled randomly on the screen. How do I select from the tenth element repeated up with jquery ? <div class='img'><img src='imagem.jpg'></div> <div…
jqueryasked 6 years, 5 months ago Jasar Orion 2,233 -
-4
votes1
answer32
viewsHow to Make a jquery code run only on the desktop version of the site
I have the following problem in the code below: // Muda o menu de imagem pra texto var x = $(window).width(); if(x >= 590){ $(document).on("scroll",function(){ if($(document).scrollTop()>100){…
-
-4
votes1
answer39
viewsAdd class in Javascript?
I need the code below to work via class and not via function is like this: <input oninput="mascara(this)" type="text"> and I need it to work via class, thus: <input class="minhafuncao"…