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
-
1
votes0
answers48
viewsFilter results from a Bootgrid table
The project uses the Bootgrid to create tables, and although it hasn’t been updated for a while, I can’t switch to another :/ Thus, I need to implement a filter based on the value of a range slider.…
-
1
votes0
answers43
viewsGenerate automation of a function
I have 5 tables: pastores, redes, regioes, areas, setores, celulas In that order, All five have these 2 fields in common, one of identification and the other that is the name. idPastores, idRedes,…
-
1
votes1
answer68
viewsJquery.load() function does not bring the textarea element up to date
Well, I have a Chrome extension with page 1 and page 2, each with its script.js. On page 1 I can open a new tab/window when I click on a button, and when the new tab opens, the . page html 2 calls a…
-
1
votes0
answers71
viewsWYSIHTML5 - Text area is not being populated by the API
I have a data editing modal with a text area that is populated by API response. It works perfectly - without WYSIHTML5. When active, the textarea does not display the API response. I have tried…
-
1
votes3
answers352
viewsHTML5 validation before preventing form submission
I’m capturing the event of clique on a button of a form and I am using the preventDefault() not to send the form, but by doing so the validation of the HTML 5 (required, email, maxlength) doesn’t…
-
1
votes1
answer141
viewsFire jQuery using the Hidden input
FORM echo "<input type='hidden' name='idRede' value=" . $idRede . " /> "; echo ' <label class="labelPequeno" for="idRegiao">Região</label> : <select name="idRegiao"…
-
1
votes1
answer218
viewsJquery Clear array when making new request
In the view I have a input select which event onchange I run a call on ajax for a given route that searches all items of a Model. <select required onchange="getQuestions()"…
-
1
votes1
answer632
viewsJquery animation to change text of a div
I have a responsive layout and one of the elements of a ROW is a text/paragraph that I want you to exchange every 5 seconds for another paragraph, for example. I have the following function to move…
-
1
votes0
answers51
viewsAjax feedback from PHP
Friends have a procedure in php where there is a "for" loop, every time it returns to the beginning it triggers information that is received in the Jquery/Ajax function that triggers it. The point…
-
1
votes1
answer28
viewsbutton in a div with display: None does not receive jQuery event when it is embedded in another div
I have 2 div's One getting the contents of the other: $( "#conta" ).html( $( "#escolhaMembro" ).html() to #escolhaMembro is with display: none. When the contents of #escolhaMembro appears in the…
jqueryasked 5 years, 10 months ago Carlos Rocha 1 -
1
votes2
answers434
viewsHow to check the number of characters in a password field with jquery?
I need to validate the password field to be between 6 and 12 characters. For this, I am trying this way: $('#form').on('submit', function(event){ event.preventDefault(); if($('#senha').val() == ""…
jqueryasked 5 years, 10 months ago user24136 -
1
votes0
answers465
viewsBlock typing in date field
Has as Block typing field date and keep up to popup who carries the calendar? The problem is this: <input type='date' id='data' name='data' max="<?php echo date('Y-m-d'); ?>" required />…
-
1
votes2
answers162
viewsHow to insert an element only once with jQuery event
I am creating a validation in jQuery and when the field loses its focus it checks if it is empty and inserts the error message, more every time this event happens it inserts the same message. How to…
-
1
votes1
answer230
viewsDrag & Drop at any position in the div
How do I get the element that will be "dropped" to stay anywhere in my div? The way I’m doing it makes the elements align. Follow image and code so far: function allowDrop(ev) { ev.preventDefault();…
-
1
votes1
answer126
viewsReturn of jquery autocomplete returning at top
I created a top complete with jquery, plus the return box is rising to the top of the page, as it could adjust? Follow image of example: Follow the code of the autocomplete: Test 01 <link…
-
1
votes1
answer46
viewsRemove classes recursively
Test scenario I have a menu, with sub-items, where each sub-item is a link: <ul id="MenuTabs" class="nav nav-tabs justify-content-center"> <li class="nav-item"> <a id="TabInfo"…
-
1
votes1
answer50
viewsIs it possible to take a data from a JSON using a predefined variable?
I have a link with an attribute that has the information of which JSON data should be obtained. <a href="#" data-json-code="code_118"></a> And I have the code responsible for its…
-
1
votes1
answer72
viewsLoad a Function after Success return and redirect page
I got the following button: <a asp-controller="Checkout" asp-action="Checkout" class="btn btn-success btn-lg btn-block pull-right" onclick="Checkout()">Finalizar</a> he calls the…
-
1
votes1
answer340
viewsHow to detect if an element is under another element? (HTML, via javascript)
I would like to know how to detect, in a simple way and return the information I need, if one element is under the other. I’ve tried for the offset, but it was very difficult and did not result in…
-
1
votes1
answer69
viewsJquery - Add element to each certain amount of other elements
I need to add a tag breaking (<br> or <hr>) each quantity of <div> dynamically arising. For PHP, i group 10 records by <div>, that is, every 10 records creates a <div>…
-
1
votes1
answer100
viewsPerformance Ajax
Developing an application, and testing some calls ajax I have come across two different situations, but in both of which I have the feedback I need. What I want to know is, if there’s any other way,…
-
1
votes2
answers96
viewsPHP does not display Json
I have a code that takes the data from a form and sends it to a PHP page via AJAX. When I try to display JSON data, PHP does not display and only shows square brackets as an array. HTML:…
-
1
votes1
answer62
viewsFixed menu has disabled links
Access the site I’m doing: https://testando23.000webhostapp.com/. Click the green arrow, notice that in this fixed menu that emerged the two links (home and over) are disabled, but if you scroll…
-
1
votes3
answers44
viewsjQuery does not format the date field
I am studying javascript and jQuery and decided to make a simple page for validation of a data field. I used the plugin Masked input and limited the field to 10 characters. I am working with 3…
-
1
votes1
answer335
viewsJquery is not working properly
Talk guys! All quiet? So, I’m having some problems with the functioning of Jquery. I am simply trying to apply some animations and transitions to my site, such as toggle(), fadein() and etc, but…
-
1
votes0
answers32
viewsShow only a few page numbers of the pagination instead of all
I made a pagination that is appearing every page: I need it to look like this: << < 1 2 3 4 5 6 7... 50 > >> << < 4 5 6 7 8 9 10 ..60 > >> I’m researching and…
-
1
votes1
answer61
viewsManipulating a jquery Children by clicking another
Hello, I would like to make a script similar to accordion. My HTML <div class="pergunta"> <h3>Titulo</h3> <article>Texto</article> </div> <div…
jqueryasked 5 years, 9 months ago Aryana Valcanaia 427 -
1
votes0
answers47
viewsClass being added to only one loop (PHP) element
I’ve been developing a system for a while and in it I was implementing the LAZY LOAD, that famous technique of loading images that are only loaded when the user scrolls the page to where they are. I…
-
1
votes0
answers76
viewsshow image coming from postgresql database with ajax
I saved the image in the postgresql(oid) database with php. Now I intend to show this image on the screen through AJAX, but I’m not getting it. The line "$("#image") is maintained.…
-
1
votes0
answers61
viewsError Validation after firing
I have the following function that fires a form I would like in case that mistake showed showValidationError on sweetalert2. At least to say that the field is mandatory or error when saving…
-
1
votes2
answers910
viewsChange the OPTION of a SELECT according to the change made in the other SELECT
Hello, everyone. I have a question regarding a form. I have a form in which your SELECT has your OPTION filled through PHP (A select made in a create file). However, there are 3 fields (SELECT) that…
-
1
votes1
answer59
viewsDuplication of jQuery event
Test scenario index <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <title></title> <script…
-
1
votes1
answer1563
viewsAdd or Remove Inputs with JS
have a question?! on the link below: jQuery1.7.2 compatibility issue for jQuery 3.3.1 i have a code that calculates some inputs based on price, quantity, subtotal (price * quantity) and overall…
-
1
votes1
answer52
viewsFeedback on a drag drop
I made a drag-n-drop with the jQuery, but I want that when the person fills in all appear a feedback, someone has some idea of how to do this, follow an example of my code <img src="image.png"…
-
1
votes3
answers100
viewsChange position HTML element with each (or other hint) on page load
I need to access div with id list and change the position of span. It’s like this: <div id="list"> <div class='item'> <span class="AB">conteudo 1</span> <span…
-
1
votes0
answers48
viewsevent $.post ajax alert status
I’m using $.ajax post on jQuery so: $('#btnSave').click(function () { let data = $('#addRunner :input').serializeArray(); $.post('addRunner.php', data, function (json) { if (json.statusF == 'fail')…
-
1
votes1
answer203
viewsInsert Checkbox values into a Textarea
I’m making a page that assists Monitoring Operators (Load Monitoring), and I need to insert multiple forms on the same page. Take the example of one of them: //Array que guarda a ordem em que os…
-
1
votes1
answer452
viewsJavascript filter
I have the script below that aims to search for the text of the blocks, but the search is performed only until the first paragraph, then does not find the word, for example: search by coast and…
-
1
votes1
answer38
viewsWhen loading page, open first tab with results
I have five tabs, and each one displays or not the result of a query in the bank. <div class="container"> <ul class="nav nav-tabs"> <li class="active"> <a data-toggle="tab"…
-
1
votes1
answer34
viewsProblem calculating and displaying price (R$) per person
I’m having a problem calculating and displaying the price in R$ per person in a table. In the HTML below, we have the number of people and a table, in this table we have the plan price and a blank…
-
1
votes1
answer150
viewsHow to add active class on a onepage site?
Nice club, you guys. I have a onepage site that has a menu in Sticky-top mode, would like to know how I do to add s class "active" via JS in the correct way according to the page being viewed at the…
-
1
votes1
answer58
viewsTwo arguments within a Javascript function
I have this function with the argument '.edit_data': $(document).on('click', '.edit_data', function(){ var employee_id = $(this).attr("Id"); $.ajax({ url:"./fetch16", method:"POST",…
-
1
votes2
answers3852
viewsWhy does Bootstrap 4 datepicker API not work?
I’m creating a calendar, somewhere in the view, I needed an input for the user to enter a date. Since I’m wearing bootstrap 4 and bootstrap has several Addons for datepickers, I used one of them. On…
-
1
votes1
answer21
viewsButton generated within $.ajax return does not work
I need some help here. So I’m using $.ajax of jQuery to fetch data in the database and enter a php variable $html that will bring a content already ready. The problem is that in that contents I have…
-
1
votes1
answer22
viewsSum values of alt attribute by each
I would like to know how to sum the values of the alt attribute. var valor; var soma; $("input[name='opcoes[]']:checked").each(function() { if ($("input[name='opcoes[]']").is(":checked")) { $('#' +…
-
1
votes1
answer23
viewsHow to insert an imput into a combobox (CB) value via Javascript
I have a list of clients in a Mysql database and I am pulling, via PHP, this data for a combobox and I want the user to click on a client name inside the combobox some inputs to be filled with this…
-
1
votes0
answers70
viewsHow to transfer a row from one table to another table?
Good morning! I have a problem related to transferring a row from table 1 to table 2. In the example I implemented a function that goes through all table 1 and marks all checkboxes sending to table…
-
1
votes1
answer398
viewsPopulate radio input with database data
When I consult the form returns the input radio filled with data from the database, as shown in the input and image: <input type="radio" id="Estado" name="Estado" value="Pendente" ' . (…
-
1
votes1
answer323
viewsCopy table cell by clicking button
I am developing a system and I need each button to copy its information, but I am having problems with the command select() and document.execCommand("copy") as you can see in the image, where is my…
-
1
votes3
answers47
viewssame origin policy how to circumvent
I own a site on a certain domain and within that site an Iframe with different port domain and host, but within this Iframe I want to realize a…