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
answer68
viewsJava Script Code Loading by Screen Resolution
Hello, I have a situation I need help with. I have a responsive site where the layout is adaptable to several screens, where the content presented and how to present will be according to the…
-
0
votes1
answer29
viewsProblem when creating Multidimensional Array with Jquery
I need to create an array this way: "M":["02328280006985",{"61","63"},],"NM":["02328280007876",{"62","64"}]} but it’s coming out that way:…
-
0
votes3
answers381
viewsDifference between Jquery.Append() and Jquery.Html()
Today doing content manipulation of a modal came to mind two possibilities $('div').append('Olá mundo!'); Or else: $('div').html('Olá mundo!'); But I don’t know exactly what the ideal would be Even…
-
0
votes1
answer40
viewsRadio Button from Ajax does not work
Hello I have a radio button q comes from ajax for calculation of front not it not worked to take the . attr({disabled: true}) from a button. If I put it right on the page it works, but when it loads…
-
0
votes0
answers23
viewsUpdate only the Divi I added via jquery
Good night. I am adding dynamic Ivs via jquery, and they have a select that is already selected according to the patient’s registration, but every time I add a new div all the other ones are…
-
0
votes2
answers196
viewsCreate plot fields
How do I generate plots using jQuery? I got the field: Valor Plots amount paid Best day to pay The code would take the valor and subtracted by valor pago with the remaining value would generate the…
-
0
votes2
answers814
viewsLoad jQuery Multiselect options via Ajax
Talk, you guys, baby? I’m having a hard time. I have a modal, and wanted when making a select change, to press via ajax, to feed a jQuery multiselect. In a console.log I can see the output of…
-
0
votes2
answers224
viewsCheck if there is a percentage symbol (%) next to the number
How to check whether or not the % symbol exists along with the value? The code below is a simplified version. The end result is that the variable taxas will or will not have the percentage next to…
-
0
votes1
answer62
viewsHow do I only style a fillText on Canvas?
I’m implementing a system that manages a file. gif with the client’s email signature, with the properties: name, sector, phone, extension and email. The only problem so far is styling each property…
-
0
votes1
answer49
viewsClass change problem in jQuery
I am developing a simple layout with HTML, CSS and jQuery. My problem is that the left icon is being replaced by the right arrows when I select an accordion. HTML <ul class="menu">…
-
0
votes1
answer48
viewsHow do I insert a new row between two other rows of a table with jquery?
Good morning! I have a page with a table, which is generated by the database. I need to insert a new row through a button, however, I’m having difficulty inserting this new row enters two other rows…
-
0
votes2
answers90
viewsChanging title of div
I would like to dynamically change via jQuery the title of a div. I have the code below, but it doesn’t work. It does the post, returns the correct value. However, with the mouse on top of the div…
jqueryasked 5 years, 9 months ago Pedro Augusto 2,392 -
0
votes2
answers2537
viewsPage with Smooth Scroll
I’m linking the pages to make a smooth scroll between the internal links but it’s not working. Javascript <script…
-
0
votes1
answer32
viewsProblem : Dynamic array x index value
Good people. I have a dynamic array that receives associated data in buttons where it should index to each interaction the values (0, 1, 2, 3...). The problem is that the index value persists at…
-
0
votes0
answers56
viewsHow to Resolve Unexpected end of JSON input using jQuery
I have a Java API that authenticates a user based on their email and password using JWT. I am trying to consume this API with jQuery. When running the following method, the request falls into error…
-
0
votes1
answer122
viewsHow to copy the contents of one <td> to another <td> in another table row?
Hello, I have a question.I have a table in which each row has a button that inserts a new row just below, but I would like to upload some information from the line above to the newly created row,…
-
0
votes0
answers28
viewsTextarea youtube does not recognize injected values, just pressed!
Good afternoon, I’m creating an automation stop for youtube, where you create the button and when you click already adds all information in the video, information that is always the same (Automates…
-
0
votes1
answer29
viewsHow to make jquery click work with Infinite Scroll?
I have the homepage with a list of things: <table id="table" class="tabela" > <thead> <tr> <th class="check">V</th> <th class="nivel">N</th> <th…
-
0
votes1
answer60
viewsChange content of ::after
I have the following structure: <div class=duvidas> <div> <span>Titulo</span> <div style='display: none'>Texto</div> </div> </div> The goal is click…
-
0
votes1
answer131
viewsRun script only once
I set up a real-time alert script but wanted the alert to appear only once, it loops infinity even clicking close. How do I stop it after the code is executed or how to run only once? This is my…
-
0
votes0
answers57
viewsTag manager jquery tag tag
since a while ago, my tag manager, in Yii framework, is generating tags with a "tag separator?" instead of a comma, which can be? Code: $('.tm-input').tagsManager({ prefilled: ["<?php echo…
-
0
votes1
answer62
viewsContrast buttons
Good afternoon, I’m with this code it uses the same button to give the contrast and back to the pattern but I need that when you click on the black ball it turns dark and when you click on the white…
-
0
votes1
answer214
viewsHow to view the selected file names in the Multiple file?
Hello I have a Multiple file and would like to show inside it the name of the selected files, I have a code that lists the names in the console.log, more as I could add them within the input type…
-
0
votes4
answers196
viewsHow to mark and uncheck div (by checking and unchecking Checkbox) with jQuery
I have 3 checkboxs: Problem with Wifi. Problem in the Email. Problem at the Portal. When the user clicks on any of the checkBoxs jQuery calls the div .active and automatically a color is filled…
-
0
votes0
answers50
viewsHow to make the scroll "jump" to a div or internal link in jQuery (or pure JS)?
Example: https://alvarotrigo.com/fullPage/ and https://www.casacomseara.com.br/, as you use the mouse scroll up or down, you will "jump" between the contents or Divs. That’s what I look for in…
-
0
votes2
answers91
viewsjquery: change the style of a div depending on the text/number in it
Friends, I have a list of items whose each item has a div which expresses remaining days with an automatic date countdown function. Example: <ul class="items"> <li class="item a"><div…
jqueryasked 5 years, 8 months ago Thiago Soubra 341 -
0
votes1
answer119
viewsStoring multi-button status on localStorage
Friends, I have the following situation: I have a list with a button on each line, they serve to define a status. When clicked change from "waiting" to "received" and is saved in localStorage.…
-
0
votes1
answer50
viewsJquery - Problems with checkbox editing function
I have a problem with the function of the edit button. I can edit the first word correctly, but when I click edit a checkbox, I edit this text. The other textp is also edited. And so on. All texts…
jqueryasked 5 years, 8 months ago user124107 -
0
votes1
answer161
viewsPass array parameter by HTTPGET in ajax to Actionresult
Hello. I have an Ajax Httpget function that would need to take an array to an Actionresult. How do I do this? $.ajax({ url: 'AtualizarTabelaDeRelatorio', data: { arrayDeInstalacao:…
-
0
votes1
answer39
viewsI have a Javascript error and I can’t fix it
Code: $(document).ready(function (){ var products = ""; var url = "https://cdn.rawgit.com/LucasRuy/1d4a5d45e2ea204d712d0b324af28bab/raw/342e0e9277be486102543c7f50ef5fcf193234b6/potions.json";…
jqueryasked 5 years, 8 months ago Alberto Verzemiassi Borguesani 11 -
0
votes2
answers526
viewsmodal call does not work (bootstrap)
Good morning! I’ll rephrase the question: mount a table that receives data and a link to edit this data. So far so good. The click on this link should open the modal for data editing. I already…
-
0
votes1
answer135
viewsExchange standard POST form
I have a Jquery function that creates a JSON object exactly as I need it. At the end of this function I send a POST to an API by passing this object $.post('http://localhost:3000/testStatus',…
-
0
votes1
answer46
viewsProblem with Filter
Goodnight People I need to know if someone could guide me on how to solve the following situation I have a textarea where I type @ it shows me a list of cities, would like that after I continue…
-
0
votes0
answers69
viewsHow to decrease the logo when scrolling the page in the Bootstrap fixed menu?
I have a fixed menu with Bootstrap where the logo is: <div class="container"> <a class="navbar-brand" href="index.html"><img src="images/logo.png" id="logo" class="maxlogo…
-
0
votes2
answers135
viewsMake words of an uppercase array - jQuery
Hello, With code below, I make the first letter of any word uppercase, except the words that are in the array wordsToIgnoreand wordContainAt. Now I thought to update the code and include an array…
-
0
votes1
answer53
viewsRotate image and resize to fit
I have the following script var graus = 0; $(document).on('click','img',function(){ graus = (graus+90); if(graus>350) graus = 0 $(this).css({ "-webkit-transform": "rotate("+graus+"deg)",…
-
0
votes1
answer70
viewsDoubt about google tanslate
Good afternoon, I am with a doubt regarding google Translate, I implemented google Translate on my website, I would like to know if there is any way this bar does not appear. <script…
-
0
votes2
answers524
viewsValidate Form Jquery
I have a form, that the button that makes his Submit, stays outside the tag <form>. then I send it via Script. The problem is he’s not validating the Form, before sending. I always only used…
-
0
votes1
answer76
viewsPopular and select a Select (Dropdowlist) option - jQuery - json
Good afternoon! In an ajax query, I get an object objectAccount, and in this object there is an array, containing a list of banks I’m populating the select account-bank with the data obtained in…
-
0
votes1
answer31
viewsError with jquery array syntax
I didn’t put all the code to not pollute the text and the doubt is about the syntax below: I have 2 table html (tblPerguntas e tblRespostas) e preciso percorrer estas duas Tables e enviar para a…
-
0
votes2
answers350
viewsShow json output on jquery and html screen
I have a question on how to show the data of a json return, on the screen using html,javascript and jquery. Inside a jsp file. Follow my javascript page: function getAvaliacao(){…
-
0
votes1
answer181
viewsPass Javascript variable to Global Scope variable in PHP
How do I pass a Javascript/Jquery variable to a Global Scope variable in PHP? recently I needed a global scope variable in PHP to receive a javascript value, this variable would be used later on…
-
0
votes1
answer74
viewsClear List after Request via JS Dropdownlist in Cascade
I have 2 Droplist one of Client and another of Project, after selecting the client he should receive the projects that are with Idcliente, I managed to do everything right, however when selecting…
javascript jquery mvc asp.net-core entity-framework-coreasked 5 years, 8 months ago Guilherme Palange 147 -
0
votes1
answer1590
viewsERROR: POST.... 500 (Internal Server Error) - LARAVEL and AJAX
I am facing a problem when returning a View to another View using Ajax. I am presented with the following error on the Google Chrome console: jquery.min.js:2 POST http://localhost:8000/tbody 500…
-
0
votes1
answer82
viewsShow Ajax request progress before completion (redo)
I have the code below, in which I get an ajax query for a file .php. The problem is that this way, I can only return at the end of the process, with the method success:, but I need to inform the…
-
0
votes1
answer183
viewsMy ajax in safari browser does not work
well, it enters the requisicao, returns the data correctly, but the moment I use the . appendchild it does not fill... OBS: in Chrome it works...... and on the console it gives the following error:…
-
0
votes1
answer33
viewsClick the button and hide two other buttons
I have a table with 3 buttons, change and end and call. The idea is when the user clicks on the end button (green), hides the change and end buttons and another green "Quit OS" button appears. How…
-
0
votes1
answer1001
viewsKeep updating select in the page div without refresh mysql php
Good afternoon, I have a div that I do a simple select bringing only the amount of database records, and I play the result on an H3 inside that div, all I need is for that div to be automatically…
-
0
votes2
answers821
viewsCPF Mask | CNPJ. when loading
I have a script that masks CPF or CNPJ, is working perfectly. but it uses the method onKeyPress, then it only works, when I’m typing. when I bring an object that is CNPJ to show, the field CPF/CNPJ…
-
0
votes1
answer50
viewsUse this in onclick event to set css style in specific element
Next guys, I’m trying to set a css style in a specific element when I click a button, I’ve done something similar but now it’s setting for all the elements that have the class I used in the selector…