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
votes2
answers130
viewsHow to place 2 events. click() on a button
I am making an administrator panel where you have the following options of Buttons Dashboard class="dashboard-button" Settings class="settings-button" Contents class="contents-button" Feedback…
-
0
votes1
answer326
viewsautocomplete bring information to 2 different fields
The problem I am going through is due to the fact that I need to return 2 different values for different fields, from an autocomplete that is working in the field "product". It searches via sql and…
-
0
votes2
answers1430
viewsInsert variable in regular expression
I need to change the name of the inputs after they are cloned. For example: order-recipient-name[0] would be order-recipient-name[1] and from there on. What I tried to: var current_counter =…
-
0
votes1
answer599
viewsCreate a list with selected table values with checkbox
I have this código, that he catches the id selected from table: $("#tablepesquisaclientes tr").each(function (index, el) { var $linha = $(el); var checked = $linha.find('.checked:checked').length;…
-
0
votes1
answer253
viewsAdd parameters dynamically in a Javascript function
You guys, it’s okay? I am trying to create a function (I will call to execute) that takes as parameter another function (I will call word), a list of objects and a list of attributes to be accessed…
-
0
votes1
answer258
viewsReturn last field included jQuery
I have a value field with the class called .amount-debit, I automatically sum up everything that belongs to that class. How fields are included dynamically, how I could only fetch the value of the…
jqueryasked 5 years, 6 months ago Sr. André Baill 6,946 -
0
votes1
answer90
viewsProblem with special characters in password meter
Next, I got a password strength meter that even works. Except he has a bug that I don’t know what the hell happens that I can’t fix at all. To validate, you need to type 8 characters, 1 uppercase…
-
0
votes1
answer143
viewssubmit php variable and form with single Submit
good evening everyone, I’m doing a job at my college and I’m having a hard time at one part. I’ve researched and tried several ways, as I’m starting maybe there’s another way that I don’t know. I…
-
0
votes1
answer2013
viewsSort HTML table using Javascript?
How can I sort the following table using Javascript? How can I do a function that chooses the column to be ordered ascending or descending? <table border="1">…
-
0
votes2
answers102
viewsAjax POST using a variable and an object
Hello, I’m having trouble sending a POST, using Ajax, only that the content has to be in this format: name: 'Nome Candidato', contents = { 'email': '[email protected], 'formacao': 'superior…
-
0
votes1
answer98
viewsConfirmation butao and only after ajax sends the request
I am using jquerry-confirm before deleting a BD record. To delete the record I am using ajax. My problem is that when I click the delete button appears the confirmation message, and before I even…
-
0
votes1
answer121
viewsEach input="file" Jquery does not validate
I have the following code on the form: <div class="form-group "> <small id="small-alert-pic">Máximo de 7 fotos</small> <small id="picture-size"></small> <input…
-
0
votes1
answer236
viewsSort via javascript function
I have this function, in various parts of my code, that performs the filter of what was selected and as it was typed. function myFunction() { var input, filter, table, tr, td, i, filtro; input =…
-
0
votes1
answer51
viewsHow to modify the values of a table td if it has a specific character?
I have a table that presents dynamic data, some of them are emails, how do I modify their value by adding the tag <kbd> and </kbd> between the value of each using javascript only?…
-
0
votes1
answer20
viewsError with prechimento and Submit of fields via ajax
$('#grupo_prod').blur(function(){ var grupo = $('#grupo_prod').val(); var filial = $('#filialAtual').val(); $.ajax({ method: "POST", url: base_url+"pdv2/selecionarProduto/", dataType: "html", data:…
-
0
votes3
answers1050
viewsUse jQuery in a JS file
I’m a beginner and I would like a help if possible... I have file index.html, which I’m importing the jQuery: <script…
-
0
votes1
answer190
viewsShow/ Hide table row
I create a table dynamically and that lists Nodes (with 'FATHER' and 'Sons'), I would like that when loading only the first nodes (FATHER) appear and when clicking the children were shown. The click…
-
0
votes1
answer80
viewsAJAX files post returning null
I have following HTML: <meta name="csrf-token" content="{{ csrf_token() }}" /> <form action="{{route('clinic.picture.add.ajax')}}" method="post" enctype="multipart/form-data"…
-
0
votes1
answer49
viewsSimplify Date Request via json
can I return the value of a variable outside the block "in case it would be the variables serverTime and off", say so I can use in another function or in my html code. var xmlhttp = new…
-
0
votes1
answer25
viewsClick on button does not work
I’m not getting the Remove button to work at all. I run it dynamically through jquery, but at the time of removing the not button from any reply. Nor does the console message appear... var pares =…
-
0
votes2
answers749
viewsDoes anyone know the possible cause of the "Uncaught Error: Syntax error, unrecognized Expression" error?
I have a code in jQuery that I hold an event when I click a certain button. The problem is that when this event runs, the console shows me the following error: That a. stand-by-column is an 'a'…
-
0
votes3
answers137
viewsHelp with Append()
Follows illustration for clarification I’m stuck on a logic and my problem is this, I have this html code: <ul class="card"></ul> <button> Aperteme </button> and do an action…
-
0
votes1
answer106
viewsFill option with Flask data - Front x Backend
I have little knowledge in frontend and I’m needing to do the following: In my Backend I have a function which I run in python and which returns a list according to print. app = Flask(__name__)…
-
0
votes0
answers37
viewsAccess varialvel after ajax request
I am trying to assign a value to a variable after a request response, but my variable always returns null; function validaItensReceita() { var validRecVec; var ajaxValid =…
-
0
votes2
answers284
viewsProblems while rescuing data from a json file
I am trying to upload data from a json file to an html table. I’m trying to rescue the json this way: function getJson(){ $.getJSON('dados/livros.json', function(data){ console.log(data); }); }…
-
0
votes2
answers75
viewsDoubts on how to select a week using jquery
<div class="input-group" id="DateDemo"> <input type='text' id='weeklyDatePicker' placeholder="Select Week" /> </div> $(document).ready(function(){…
-
0
votes1
answer25
viewsInstaller with autoscoll
Good morning. I’m creating an updater and I need to make every $rs run the scroll go down. What is currently happening? It’s a white screen, but it’s running, and when it’s over it’s all at once.…
-
0
votes1
answer1461
viewsHow to make a each in Datatable and get only the selected lines?
Good morning, I am needing to "SCAN" my Datatable and get only the selected line, could someone please help me? The action will occur after the click of any button. I have this code below where I…
-
0
votes1
answer48
viewsAdapt button display more Ivs to hide the displayed Ivs
I have a session that has many cards and they are displayed by clicking the button to load more that displays 4 in 4 as shown in my script: JS: $(function () { "use strict";…
-
0
votes1
answer32
viewsCreate multiple select options with Jquery
Good afternoon, what I’m trying to do is a button where clicking creates a select option, but I can create as many times as I want. my select with database connection; <select…
-
0
votes0
answers34
viewsUsing Math.floor to calculate home time
Hey, guys, you okay? See if you can help me, I have 3 inputs, one of them put the date the employee entered and the other the date the employee was disconnected. The 3° input shows the home time,…
-
0
votes1
answer331
viewsHow to limit the number of decimals in javascript?
I have a function to change quantity in the shopping cart and I need to limit the number of decimals, because if I add more than 2 units the value is like this: 89.69999999999 Example:…
-
0
votes1
answer131
viewsGlobal variable is not being assigned within an AJAX function
I created a global variable in Javascript and I am making an AJAX request, inside the function Success ajax, I assign the return to the global variable, but when leaving AJAX, the variable is…
-
0
votes1
answer49
viewsHow to delete non-numeric characters, which were added by Mask?
Whoa, what’s up, man? I am doing a project where I need to show the result of a calculation on time, in the same form,. The problem is that when I started using 'masks' with Jquery, to facilitate…
-
0
votes1
answer239
viewsXmlhttprequest - Depreciated Async False
My console is informing me of this: jquery.js:9592 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because However, I need async false and I’m not sure how to do it.…
-
0
votes1
answer28
viewsAdd jquery line without changing previous value
I have an Row with four inputs according to the image, which when clicking the button is added a new line. The problem is that at each insertion the value of select returns to the value of the first…
-
0
votes1
answer64
viewsClear input and insert new value into it
The combobox highlighted in red when selected triggers an action in jquery to take values from other inputs and add them to the input in blue (Hidden type, but this text for you to see what is…
-
0
votes1
answer57
viewsIF and ELSE check is not working
Guys, I’m trying to do the following, when you click on the button it checks if the fields are empty, if it’s all filled it hides the form, the problem it’s not falling into else of verification: if…
jqueryasked 5 years, 4 months ago Boi Programador 346 -
0
votes0
answers36
viewsWhy doesn’t it work?
I’m new to messing with JS and it seems a silly mistake, but I caught it... When I try to use the code as follows, it doesn’t work... So it doesn’t work <div id="intfloat" onclick="Showmenu()"…
-
0
votes1
answer41
viewsJquery applies css style only the last time it runs
Hello. I have a table with information that will be entered in the database, making a request line by line. Let’s take the image as an example: If I want to register in the bank these 5 rows of the…
-
0
votes1
answer115
viewsbutton to return to the beginning of the page
Good afternoon, I am doing a project and created a button to return to the beginning of the page, but this does not appear when requested. I have seen videos lessons, numerous tutorials and nothing.…
-
0
votes0
answers57
viewsChange <a> tag text via Jquery
I have a pop-up that generates the following html code: <a data-val-filinkbutton-type="button" href="#" id="AtribuicaoCodigo_lnkPop" onclick="openDialog(event, this,…
jqueryasked 5 years, 4 months ago Stand Alone 350 -
0
votes3
answers131
viewsProblem when trying to add elements ckeditor
I have a page that carries a modal bootstrap. Within Modal there is a textarea with ckeditor. The problem when I try to add a table for example, I click on the add table icon it opens the dialog…
-
0
votes1
answer259
viewsBootstrap’s alert to disappear
I have the following code: <script> $(document).ready(function(){ $(".alertaLogin").fadeIn( 300 ).delay( 3000 ).fadeOut( 400 ); }); </script> His goal is to make Bootstrap’s Lert…
jqueryasked 5 years, 4 months ago user24136 -
0
votes1
answer55
viewsDoubt about Javascript or jquery for Collapse in viewport
I created a "advanced search" Collapse button for mobile (768px), I would like it to start closed only at 768px resolution to gain screen space. Currently starts like this: <button type="button"…
-
0
votes1
answer65
viewsI am unable to run a Node.js application because of jquery
I tried to install a bootstrap in a Node.js application, then installed jquery and Popper.js, but now when I run my application this giving the following error. var version = $.fn.jquery.split('…
-
0
votes1
answer74
viewsChange the cursor bar in an edit field with CSS JS or Jquery
Hello, I would like to change (stylize) the cursor bar (flashing) into edit fields in HTML pages. Not the cursor, but the cursor bar. I researched a lot here at SOPT and found very interesting…
-
0
votes0
answers96
viewsModals always opening the same div
Hello, I am doing a work in which there is a table with a button in each Row, and in each button, when clicked, a modal appears. This modal contains a slider input and a div where the text written…
-
0
votes1
answer250
viewsDynamically generate input - html, javascript and Jquery
Friends, I need to receive a numerical value and from that input, automatically generate the input. For example, type 5, and the program generates 5 input for numeric input. What I have of code is…
-
0
votes2
answers66
viewsHow to count elements on the screen and when reaching a certain amount change position?
Good afternoon, I would like to know how to change position when reaching a quantity X of elements on the screen using javascript. Example: Tenho 3 maças no lado direito da tela, ao adicionar a…