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
answer359
viewsRegex - Remove between tag and class name start and last tag close
I have a string (html) and need to remove everything that is between the first occurrence of <div class="c and first tag closure > and last closure of "</div>". The first, it must be…
-
0
votes1
answer379
viewsforeach in javascript for an error json return for a single registry
I’ve got a very boring problem and I don’t know why Through an ajax request, I get from the server the notifications that the user has not yet viewed (similar to facebook) For this, I use the…
-
0
votes1
answer1038
viewsOwl Carousel + Vue.js with dynamic item
Hello, I have a component that initializes a slider with dynamic items coming from the database. However, I have a search box that makes a new request to the database and returns new items to…
-
0
votes2
answers45
viewsGet Radio and Text Values in Order
Good note. I have a problem with the logic of how to proceed between a set of questions and answers. I have the code below formed by inputs with the types text and radio.I want to recover the…
-
0
votes1
answer342
viewsRow number in table
I have a table and I want that when you click on the info button, the next row information appears (which is hidden). To do this you would have to take the value of td that I clicked and enable with…
-
0
votes2
answers655
viewsCall the controller via javascript or ajax and insert in table Asp.net mvc
How can I get an item from ul li pass its value(id) to my controller and insert that value into the table? I already have the list this chunk of code below already works I can add items in the list…
-
0
votes1
answer1273
viewsModal window (Boostrap) is not visible
<!doctype html> <html lang="pt-br"> <head> <title>Teste</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport"…
-
0
votes1
answer98
viewssetTimeout with each loop does not work
count = 1; $("a.btns").each(function() { if ($(this).parent("span").attr("id") == "btn_default") { return; } count++; these = $(this); setTimeout(function() { $(these).click(); }, 10000 * count);…
-
0
votes1
answer278
viewsBrowse json multidimencional javascript
I have this json…
-
0
votes0
answers398
viewsFileupload Jquery with C#
I have the following problem I am using MVC (C#) and I need to upload documents in general(. doc, . pdf , . png, etc) I am using the Fileupload library and jquery 3.1 In the example pattern that the…
-
0
votes1
answer1236
viewsFile field with Jquery
I’m creating an upload through a modal this way: <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div…
jqueryasked 7 years, 2 months ago user24136 -
0
votes1
answer462
viewspass variable javascript to php and write to database
I need to take the variables of Alert and go to PHP, and then record in the bank, the bank recording and quiet, what not getting and send to test page <script…
-
0
votes2
answers469
viewsShow and hide according to another event
I have 2 show/hide buttons from 2 groups: group1 and Group2.When I click to open the group1, for example, it opens a card with information from that group and when I click hide it hides. So far so…
-
0
votes1
answer377
viewsAjax Jquery C#error request
I am getting error 401 in a simple Ajax query with Jquery. Request: $().ready(function () { $.ajax({ url: "Ajax/RetornoAjax.aspx/ObterResultados", type: "GET", //Caso não passe nenhum dado dataType:…
-
0
votes1
answer460
viewsSelect2 does not work on my pc but works on jsfidle
This jsfidle code works, i.e., shows stylized select and select with input search. <html> <head> <title>TESTE</title> <script…
-
0
votes1
answer89
viewsJquery event click after attribute change
I have a little problem here with Jquery, when the button is clicked I need to take the value of the input and replace the attribute 'href' of one and at the same time click on it... I’m not having…
-
0
votes2
answers128
viewsHow to perform scroll event only when you click on a certain element?
When I click anywhere on the site, it makes the animation scrolling to the div #texto_position. How to make so that only when you click on the element make the animation? $(window).on("resize…
jqueryasked 7 years, 2 months ago Wagner Martins Bodyboard 698 -
0
votes1
answer231
viewsDatatables Jquery does not render column button in Codeigniter
I’m trying to put action buttons on my table through the datatTable plugin. My Javascript code $(document).ready(function(){ var table = $('#dataTable').DataTable( { "processing": true,…
-
0
votes1
answer424
viewsHow to run event right after $('div'). load(url)?
I want to know how to make one $('#div-search').on('load', ()=>{alert('carregou');}); I have a div where there are several $('#div-search').load(url) in the code. however now I need to perform a…
-
0
votes1
answer67
viewsHow does the field update via Ajax occur?
I have the following question/problem: I have an ajax script that searches the zip code and fills some fields on the screen. One of them is the neighborhood. In the sequence I need to use the result…
jqueryasked 7 years, 2 months ago Marcelo Gomes 551 -
0
votes1
answer104
viewsModal opening using different links to the same table row
I have the following table: <table id="tabela"> <thead> <tr> <th>Produto</th> <th>Cliente</th> </tr> </thead> <tbody> <tr> <td…
-
0
votes1
answer308
viewsPopover bootstrap button in jquery does not show content
Good morning guys, I’m trying to understand how the bootstrap Popover works, I’m trying to use in button form to understand how it works but this is a secret for me. Although following tutorials, or…
-
0
votes1
answer125
viewsCrud with Edit inside the Own table and search for data + database
Could someone tell me how to make a CRUD with editing by the table itself ? Detail this table has to be linked in a database, I did it in PHP with Search, got ball show, but my boss did not want, he…
-
0
votes0
answers36
viewsFile field does not add files when it has more than one field
I am having problems in an upload system. The user can send up to 05 files, for this, I am doing so: <table border="0"> <tr class='linhas'> <td> <div class="md-group-add-on">…
jqueryasked 7 years, 2 months ago user24136 -
0
votes1
answer93
viewsjQuery plugin with trigger in event click
jQuery plugin: (function($){ $.fn.extend({ meuPlugin: function(){ $('body').on('click', this, function( e ){ console.log( $(this).attr('href') ); return false; }); } }); })(jQuery); Selector in…
-
0
votes0
answers37
viewsJquery 1.11.3 - Code does not work within $(Document) loaded function. ready only if inserted directly
ISSUE #1 I discovered that the code was not working, because this chunk of Jquery code is inside a function like this: var minhaFuncao = function(){ var tbASP = []; var tbID = [];…
-
0
votes1
answer3690
viewsJquery mask for real currency
I’m wearing this mask: $(".real"). Mask('#.#0,00', {Reverse: true}); There are some inputs that receive some calculations, such as this: $('#vd_ga').on('blur',function(){ var vd_ga =…
jqueryasked 7 years, 2 months ago Rogério Pancini 119 -
0
votes1
answer121
viewsSum with Jquery
I’m doing a simple calculation of some values: /****** Cálculos Google Adwords ******/ $('#vd_ga').on('blur', function() { var vd_ga = $('#vd_ga').val(); var pvm_ga = $('#pvm_ga').val();…
jqueryasked 7 years, 2 months ago Rogério Pancini 119 -
0
votes2
answers346
viewsSimulate event click tag list Span
I have a page where I display some audios when the user clicks and fires the sound. Example HTML <td><span class="audiospeak" data-lang="en" data-aid="of">of</span></td>…
-
0
votes2
answers501
viewsGroup and add json return data with jquery
I have this Json that returns from the database, I need to consolidate the data that are equal but I have no idea how to do in jquery or php. If anyone has any suggestions! { "data":[ {…
jqueryasked 7 years, 2 months ago Carlos Lopes 185 -
0
votes1
answer804
viewsPOST de imagem, via ajax
hello basically what I want to do is a system similar to the facebook, to create posts. Where you press to send the photo, choose the photo and automatically the photo goes to the server and has a…
-
0
votes1
answer45
viewsError making autocomplete c#
I’m trying to make an autocomplete, but is giving the following error, not even make the post... My code is like this: <script type="text/javascript"> $(function () {…
-
0
votes1
answer230
viewsSelect2 database
I have a Select2 that is populated from the database of everything working, receives the data of the bank and etc. however if I want to edit it does not bring the saved option on the screen only on…
-
0
votes1
answer44
viewsJquery Slide Image Transition Error
I’m setting up a website and the image slide is not working.. the image is static. What might be? <!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta…
-
0
votes1
answer318
viewsPut scroll down
I have this jquery that animates the scroll when you click on a link. How do I so that when I click on the link the scroll goes a little lower, like a 10% down, would have like? // Smooth scroll…
jqueryasked 7 years, 2 months ago Wagner Martins Bodyboard 698 -
0
votes1
answer81
viewsPlay js variable in html
I made two inputs date, and when I click on "generate" it shows on the console the product that has these dates, but it is a variable, how do I turn a class and play in html? there every time I call…
-
0
votes1
answer246
viewsReplace by ignoring tag and returning as string
I think I’ve seen this problem here once, but I couldn’t find it at all, even searching the Internet (I forgot what words to use in the search because I think I’ve dealt with it before but gave me a…
-
0
votes1
answer342
viewsPicking up positions of a word within a text
I have a text and I want to pick up the starting positions of a specific word in all occurrences within that text. For example, I have the following text: maria gosta de joão. jose gosta de maria.…
-
0
votes1
answer1039
viewsBrowser "back and forth" button and dynamic div without refresh
Me and a friend have been having some problems with jQuery.. If we base it on a code to make the button back and forth of the browser work on our site, with the function of a update div without…
-
0
votes0
answers86
viewsImage Upload with Ajax (fakepatch) to PHP
I’m taking data from a form (HTML) to register in my database, the data is coming as follows in the Firefox Console. http://prntscr.com/ig4kcm. In my view the problem seems to be in the $_FILE…
-
0
votes0
answers65
viewsjquery does not work
/* EXCLUIR ARQUIVOS DA GALARIA */ $(document).ready(function() { /* EXCLUI ARQUIVOS DA GALERIA IMG E PDF */ $( "#btnexcluipdf" ).bind( "click", function() { var vID = $('#idarquivopdf').val();…
jqueryasked 7 years, 2 months ago Jefferson Meireles 43 -
0
votes2
answers41
viewsHow to check form values before sending it Javascript / jQuery
I need to check two fields of a form before sending it. I need to check that the 'stock_minimum' field is smaller than the 'stock_maximum' field. I have made numerous attempts and none worked well,…
-
0
votes1
answer165
viewsUpdating XML Data in Real-Time with jQuery.get
I’m building a page that has a carousel (with bootstrap 4) that displays some information about temperatures. This information comes from a XML that will be updated whenever any change occurs. I’m…
-
0
votes1
answer17
viewsWhile with PHP and Datapicker
I have a page that is fed with Mysql Database information. This page also contains an Input Text with dataPicker calendar. The problem is that only the first line of looping works with Datapicker,…
-
0
votes2
answers34
viewsforce an event from a button after deleting registration via modal
I want to force a click on the panel after deleting a record via modal. [![Panel description][1][1] I need that right after deleting the file, it forces the panel button.…
-
0
votes1
answer57
viewsGeneral total does not sum
I am putting together this budget form. Almost everything is perfect. Just the total sum, which however fit is not adding up. $(".real").maskMoney({ prefix: 'R$ ', thousands: '.', decimal: ',',…
jqueryasked 7 years, 2 months ago Rogério Pancini 397 -
0
votes0
answers39
viewsJquery loop to read 3 objects and create 3 dataPoints for Charts canvas
I’m trying to accomplish the loop on the return of this request AJAX. In the first event success, I make a second call AJAX which will return - in this case - 3 objects JSON. My doubt is how to…
-
0
votes2
answers205
viewsRelease save button with permission
I got a registration chart in a modal, he’s got the save and cancel button, only by filling in all the required input and select it releases the save, and saved in the database, ta all working, only…
-
0
votes0
answers32
viewsSearch for all or just one form field
I’m having problems with a form on my Wordpress blog, I have the following form that is on file functions.php. function terapeuta_search_scripts(){ wp_enqueue_script('terapeutas',…
-
0
votes1
answer506
viewsIf inside a Success in ajax
I make the request, I get the right amount, but at the time of the check it’s not right $.ajax({ url:'includes/checkCPF.inc.php', method:'POST', type:'POST', data:{cpf:cpf}, success:function(data){…