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
votes0
answers878
viewsJquery find next element inside a complex div
Friends, I need to find an element in a tree DOM a little complex and I’m not getting the result. As I leave the input id = "barcode" i add new lines below and need to trigger the click on the next…
-
0
votes1
answer43
viewsHow can I pass a redirected parameter by clicking a button
I am trying to send a parameter to another page .php when clicking a button, I would not like this parameter to be displayed in the browser, I tried it with this code here, but the parameter was…
-
0
votes1
answer72
viewsCreate mask to accept only links containing HTTP/HTTPS - Java JSF
I need to create a field input where the user will place a link, but this field can only accept links that contain http:// or https:// at first. There is a way to do a validation in Javascript or…
-
0
votes0
answers109
viewsUpload without refresh using AJAX?
I have a page HTML and a page on PHP where I receive 2 files being one audio and the other an image and some input information. I would like the moment you make the post not redirect to the PHP,…
-
0
votes3
answers1997
viewsPagseguro getPaymentMethods Error
59001 - "Unknown web Session id" I am implementing Transparent Pagseguro Checkout using PHP v2 API, but I always get the above error in the Javascript part. Their support is horrible, there’s…
-
0
votes1
answer175
viewsHide Buttons and Enable Other with ajax
I have a page and in it I display a modal with 2 buttons, a confirmation and another cancellation, as code Below: Inside that modal I have a DIV <div class="resp"></div> This div I get a…
-
0
votes1
answer158
viewsI’m unable to fill the <td> dynamically with AJAX and PHP
I have a code with a form that when I do a search and list the employee’s activities. I am using PHP and AJAX, but the tabelanão is being filled. See the Code:…
-
0
votes2
answers27
viewsI need to make an automated selection
Hello, I would like help to execute an automatic selection command on this: <select tabindex="-1" class="select-large"><option value="-">[Escolha...]</option> <option…
-
0
votes1
answer609
viewsI need to make an auto click on a class button (HELP)
I need to perform an auto click on this button: <button tabindex="-1" class="btn btn-inverse btn-large"> Botao1 </button> However there are several similar classes, I have tried using…
-
0
votes2
answers77
viewsHow to pass a value from a button (dynamically created within a td) to an ajax function and query the database with that value?
Hello, I created an area that does a search and returns values (from a database query using ajax) within a table. Since one of the table’s tds has a button inside. I would like to query the database…
-
0
votes2
answers71
viewsAlert when scroll reaches top of page
In the code below, the alert is triggered when the scroll arrives at the end. $('#messages').scroll(function() { if ($(this).scrollTop() + $(this).height() == $(this).get(0).scrollHeight) { alert('a…
jqueryasked 6 years, 3 months ago Wagner Fillio 1,328 -
0
votes1
answer383
viewsPhp does not read POST data
I created a form that will be submitted via Jquery, more specifically: http://malsup.com/jquery/form/. Well, send the form, the php file is recognized, it returns the error messages and everything…
-
0
votes1
answer74
viewsAnchor links open a Javascript function
I’m developing a simple HTML page with links to anchors scattered around the document, but after including an image gallery in jQuery, the links started to open the gallery instead of scrolling to…
-
0
votes0
answers87
viewsProblem with Boostrap clear Fileinput field
I have a page with 2 input text and 2 input file When I receive the answer from ajax, I have the whole form cleaned as code below, but only one field is not cleared: <input…
-
0
votes2
answers303
viewsUpdate elements inside a for using jquery
Hello, I’m starting out in web programming, and my question I think is simple, today I have a certain page containing a forech to display of for dynamic a list of an order <tbody> <?php $i…
-
0
votes2
answers86
viewsAuto Select the first value of a Select Option
Hello I am using an extension in Chrome called "tampermonkey" and need to create a function that auto select the first value of a Select Option <select tabindex="-1"…
-
0
votes1
answer74
viewsMaking Data-type Breadcrumb from a <li> Scrolling Down Page
Can someone help me with that. I have the page and html which is a giant list. Each < li> has a date field in it <li class="classe_dia" data-dia="12">Conteúdo</li> <li…
-
0
votes3
answers433
viewsTake the JSON return and move to a PHP variable
I need to pass the return variable inside the alert and move on to PHP, but everything I’m trying from examples to here, even from the forum, is giving Javascript error: <?php $pegar_ip =…
-
0
votes1
answer303
viewsLaravel - 'Route' call without a command for this?
I’m doing a test using Laravel, jQuery and PHP. I have routes, jQuery action, controller methods, and two views-Lade, one to provide search elements (Invoicingview.blade.php) and one to display the…
-
0
votes1
answer27
views<input> Reject certain character
For example how it would look mine tag/script to reject the comma of a <input> in real time? I don’t want to allow this character to be placed on input and after the invalidation I want that…
-
0
votes1
answer76
viewsJavascript function not active in input
Good night. Notice the image above, I have a form and in it I use Abels that fix themselves at the top (example of CEP input there) when I type something into them (JS input event). So far so good,…
-
0
votes2
answers519
viewsPassing Parameter in URL using JSON + AJAX
I am studying Javascript and would like a support from you. I have a file I called getPagamentosMaioresQue.php, this file has the following syntax: <!DOCTYPE html> <html> <head>…
-
0
votes0
answers76
viewsproblem with tablesorter
I wonder if it is possible to manipulate the research of tablesorter? I have a list with several records and pages, but when I have searched, it is only searched by the page. How do I search across…
-
0
votes1
answer37
viewsTag html in Jquery
I can’t get the tag <br> html in jquery. $('#test').change(function(){ $('#doenca_atual').val($('#doenca_atual').val()+" <br> "+$('#test option:selected').text()); }); Instead of jumping…
-
0
votes0
answers39
viewsUndefined jQuery passing via button
I’m trying to pass the cod_historico via jQuery, inside a button, which will open a modal, to search internal views of a specific content. I’m generating a list coming with database records:…
-
0
votes2
answers77
viewsJquery Display and Hide Div Problem
I have a code, where I want to display the result of a sum without reloading the page. As an example, I have already set initial values in the fields. *Problem: I have one div id resultado that has…
-
0
votes1
answer75
viewsDifference between "==" and "=="
I was developing a code javascript and I saw that the compiler accused error in the equality that I did at that time, but there was no error in the execution. I would like to know the difference of…
-
0
votes1
answer453
viewswith capturing the width of the printing screen with jQuery
I have the following code: HTML <table style="width: 100%"> <tr> <th> teste </th> </tr> </table> JQUERY // Imprime a página window.print(); // Redireciona página…
-
0
votes0
answers268
viewsSave a function value to a Global Variable in jQuery
with a problem in the development of a dropdown simple, I’m not able to take the value of a function to pass to others, the values I’m looking for are $target and dropdown which corresponds to the…
jqueryasked 8 years, 9 months ago iLeonardo Carvalho 561 -
0
votes1
answer77
viewsHow do I get the parent div of that element e.target
I tried like this and with .parent() but it did not give... $('.review' + reviewsArray[index] + '').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) { $('.review' +…
-
0
votes1
answer473
viewsMake the input edge flash
I’d like to signal when the input of a form be wrong. I’m wearing jQuery. In my head I imagined this: if ($("#campo1").val() < 0){ var i; for (i = 0; i < 10; i++) { $('#campo2').attr('style',…
-
0
votes1
answer600
viewsMonth with two digits in getMonth, but giving error
I’m trying to put double digits on getMonth, but it’s going wrong. What I’m doing wrong? var data = new Date(); var dia = ("0" + data.getDate()).slice(-2); var mes = ("0" + (data.getMonth() +…
-
0
votes1
answer69
viewsRecalculate when changing date or clicking the radio button
Hello, How to Recalculate Values FEES AND SERVICES and the SUM OF FEES AND SERVICES when making the field change dataFim or if it is clicked on radio button = situacao_chegada. I thank you all.…
-
0
votes1
answer129
viewsHow to disable Datatable jquery sorting when it is created manually?
I have a datatable created manually in View follows code <table id="datatable"> <thead> <tr><th>Nome</th></tr> </thead> <tbody>…
-
0
votes1
answer239
viewsLike button with jquery
Hello. I am a beginner and please need a help from you. I have the following challenge: Make a Like button with jquery and save it to firebase. I imagine you have to put an icon or button in html…
-
0
votes1
answer15
viewsProblems with toggle checkbox(Switchery)
Good Tade, I have a problem adding the checked attribute to checkbox. I have knowledge in Jquery and I’ve done it many other times, but I’ve never used Switchery, I don’t know if that’s the problem,…
-
0
votes1
answer52
viewsJquery Plugin Mask does not work
I would like to add a mask for landline registration on a system screen. But Jquery is not working. Follow code below. <script> $(document).ready(function(){ $('#tel').mask('(00)0000-0000');…
jqueryasked 6 years, 2 months ago Hamilton Martins 1 -
0
votes1
answer35
viewsCode reduction and variable declaration
Good morning. I have 8 different variables with the same functions. However, the functions assigned to these variables are equal. I feel like I’m being repetitive in the code. There is some way to…
-
0
votes1
answer811
viewsDropdown menu form Does not appear when clicking button
I’m making a menu with Dropdown using bootstrap. That when you click on the login button it displays the fields for the user to enter the email and password. However, when you click the button the…
-
0
votes0
answers26
viewsDisplaying forms through Select with Jquery
I have a select field for the user to choose which form to register the data! ( 2 forms to be displayed). When selecting the first option in select, I am using Jquery Hide() and show() to display…
-
0
votes0
answers290
viewsTake column data from a given row with Jquery
I have a table where I pull the data of all the products I have registered in the database, more or less like this: codigo | descricao | valor | ... ---------------------------- 123456 | produto 1 |…
-
0
votes0
answers35
viewsAutomatic Drag and Drop after image capture
I’m making a registration form in which users can register dragging and dropping or take a photo with your webcam, but when taking a photo via webcam (already implemented this feature), the idea…
-
0
votes1
answer457
viewsSelect all elements of a CSS class except $(this) with jQuery
Be the HTML below as an example: <div> <a class="link">Link 1</a> <a class="link">Link 2</a> <a class="link">Link 3</a> <div> How can I select all…
jqueryasked 6 years, 2 months ago Thiago Krempser 1,878 -
0
votes1
answer54
viewsHow to overwrite a file with php/jquery database information
I have a program that creates a record on it and I need a function that takes the information registered by the user and fill in a pdf file that is already formatted and stylized as it needs to be.…
-
0
votes2
answers613
viewsForm with Ajax and PHP
hello. I have a form inside a modal - which is opened by clicking a button that is generated as a column of a table. By clicking this button I capture the contents of each column and fill a form…
-
0
votes2
answers913
viewsGet input text values inside modal-body
Expensive; How to get INPUT TEXT values and direct them to Body-Modal? I have a form with several inputs disabled, so that the user does not edit. However, when clicking the button that calls the…
-
0
votes3
answers630
viewsProblem accessing api using jQuery $.ajax
I’m having trouble accessing the api using the function $.ajax({}) jQuery. The Error: My code: <!DOCTYPE html> <html> <head> <script…
-
0
votes2
answers150
viewsNumber count according to page scroll using jQuery!
I created a numerical counting animation with Jquery and it’s working fine, but I wanted the count to start only when the page scroll reaches the place where the animation is automatically. I don’t…
-
0
votes1
answer148
viewsJquery, Initiating with Function
I’m in an online Jquery course where the teacher proposed a code like this: var inicia = function(){ var valorTotalItens = $('.valor-total-item'); var valorBase = 0; for (var i = 0; i <…
-
0
votes0
answers343
viewsHow to configure . htaccess to block direct access to all directories except public
I have a problem with setting up . htaccess, I want the user to have access only to the public folder, so I created a . htaccess at system root blocking access to all folders and files, and one in…