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
votes2
answers168
viewsjavascript dropdown class in toggla
Guys I’m having trouble with my Nav. I was following a tutorial on how to make the navbar responsive and disappear when it comes off the top. However its drop-down menu does not work, I tried to…
-
1
votes2
answers5730
viewsButton to copy html from page
I need to provide a button where users will just click and copy all the code that was used to develop that page. I’ve seen a lot of similar questions, but none of them have solved my problem. It…
-
1
votes1
answer218
viewsMethodnotallowedhttpexception($others) Laravel Send form via Ajax
I have a simple form and I am sending it to the controller by Ajax, but my problem is that after clicking the Submit button it does not call the Ajax request in my Jquery and already forwards…
-
1
votes1
answer1338
viewsProblems with Jquery to get input Text value
I am unable to get the value of input text, from the error of indefinite... someone would know to answer me because it is like this??? $(document).ready(function () {…
-
1
votes1
answer216
viewsHow to concatenate a javascript object to a post form?
I have an object JSON that I built at runtime, I need it sent to my servlet, along with the other form fields, via post, how do I do this? I searched a lot but nothing worked. function createJSON()…
-
1
votes2
answers69
viewsIgnore strings containing "@" - jquery
See the function, below it serves to change the first character of the string for uppercase and other minuscule characters in the fields they have class lower This function ignores strings smaller…
jqueryasked 6 years, 9 months ago Wagner Fillio 1,328 -
1
votes1
answer279
viewsButton does not work when last append / prepend
I’m trying to put a button for append taken via ajax. After being placed in html, the button it stops working, (everything works normally after updating the page, because it 'picks up' the data from…
-
1
votes0
answers58
viewsPlacing ellipsis in mixItUp pagination
I have this paging script from mixItUp, that works normally. // To keep our code clean and modular, all custom functionality will be contained inside a single object literal called "buttonFilter".…
jqueryasked 6 years, 9 months ago Rogério Pancini 397 -
1
votes0
answers36
viewsDatepicker Beforeshowday using web api
Good evening, I need to make a calendar (using datepicker from jquery ui), where the dates listed in the database, need to appear highlighted. But I have no idea how to do it. I am consuming a…
-
1
votes1
answer396
viewsHow to edit the bootstrap margin in css or js?
Good evening guys, I’m implementing a Popover on my page, but I’m doing it inside a table that is inside a Jumbotron, the problem occurs of the first 3 lines where the Popover appears far from where…
-
1
votes1
answer333
viewsUpdate sweetalert 1.x to sweetalert 2 + javascript Promises
When updating the library Sweetalert it stopped working, while debugging the error I saw that it had many modifications that made the version 1.x incompatible with the new version, so I would like…
-
1
votes1
answer326
viewsReturn results with POST Jquery and PHP
I have this script that searches the database and returns the values within each input: $('#cidade_estado_sel').hide(); function limpa_formulários(){ $('#nome').val(""); $('#telefone').val("");…
jqueryasked 6 years, 9 months ago Rogério Pancini 119 -
1
votes1
answer55
viewsInsert various products + a rental date for each
I am with a tremendous doubt and without any north of how to solve. I need to select products to rent to a client and inform a date of the rental time of the same, but I do not know how to present…
-
1
votes1
answer181
viewsJquery Dropdown, stop propagation with right click
I am using Jquery Dropdown: https://labs.abeautifulsite.net/jquery-dropdown/ In the project’s Issue, there is a code that prevents the menu from closing by clicking as a left button, I would like it…
jqueryasked 6 years, 9 months ago John Quimera 541 -
1
votes2
answers1993
viewsCheckbox with jQuery Enable and Disable field
I have the following structure: <tr> <td>Modalidade</td> <td><input type="checkbox" name="check_adulto" id="check_adulto"> Adulto(s) <?php echo…
jqueryasked 6 years, 9 months ago Sr. André Baill 6,946 -
1
votes1
answer75
viewscircle with several bars with jquery and css
I’m trying to create a circle with bars inside that accompanies the edge of the circle, I’m hours breaking head with this. Here’s the code I took all day to make, but that’s not it yet,…
-
1
votes2
answers5850
viewsHow to generate event from checkbox marking or unchecking with jquery/javascript
I am trying to generate events from the user action in a checkbox list. The idea is simple: Manage the appearance of "Divs" content on the screen from the ". toogle()" jquery checkbox in html. The…
-
1
votes2
answers880
viewsJquery Ajax - Request problems every x seconds
I am developing a web application that I use ajax to request from time to time to find out if there has been a new update, but my code does not work perfectly. I’m new to jquery and I’m having…
-
1
votes1
answer46
viewsupload Mutiplos files
How do I get the files on AJAX? That’s the AJAX that is working, however I am not passing as date the files, I’m taking the PHP $('#btnenviarpdf').click(function () { var id =…
-
1
votes2
answers68
viewsproblem with dblclick event
I have a code that was working and from one day to the next it stopped working, I don’t understand why this !! It’s not even firing the event ... I followed the code below: <table style="width:…
-
1
votes3
answers838
viewstake input value Hidden within a <td> tag
how to get value of this input inside the table with data from the bd: HTML CODE <table id="tbl_3" class="table table-striped table-bordered table-hover"> <thead> <tr> <th…
-
1
votes1
answer105
viewsJquery - Redeem the value of a 'td' and insert into a Text
Good night , Next galley, I have a table from which I use the data from mysql , wanted to take the value of td ,and insert inside a TEXT that will appear inside the TD of the table with the value…
-
1
votes0
answers116
viewsOpen PDF Internet Explorer
Good morning, I need to Open PDF of my table at the click button, it is working in all browsers, except in IE, in principle just convert Base64 into something that IE support, automatic, via…
-
1
votes0
answers37
viewsCan I use jQuery code in a . Factory and inject it into the controller?
I’m developing a site using Angularjs ES6, and on this site I needed to perform a function and I wasn’t getting it. I searched the internet for a similar function to understand how I could do and…
-
1
votes1
answer327
viewsHow to clear a @Html.Textboxfor using Javascript?
I am trying to clear the value entered in the field of TextBoxFor the following form just after Submit. @BHS_Treinamento.WebApi.Models.Curso @{ ViewBag.Title = "Cadastrar"; }…
-
1
votes1
answer225
viewsSelect element with Jquery to add a tag
I want to add line cutting text with tag wrap('<strike>') via Jquery. The problem is that I need to select the P and SPAN tag that are inside the DIV class media-body, but only when the…
-
1
votes1
answer318
viewsHow to make a each inside an append?
I’m trying to create a Jquery plugin but I can’t adapt a . each into a . append, how can I use it to work inside the . append? Follow my example below: var selectBox = $('.select__atual'); var…
-
1
votes2
answers278
views -
1
votes3
answers538
viewsHow to take the value of each TD inside each TR dynamically using jQuery?
I have the following sample HTML: <tr> <td>Futebol</td> <td>Campo</td> </tr> <tr> <td>Volei</td> <td>Quadra</td> </tr>…
-
1
votes2
answers40
viewsConcatenate Radio Elements
I have the following code. Html: <div> <textarea name='arraytextArea[]'></textarea> <br> <input type="radio" name="grupo1"…
-
1
votes1
answer564
viewsPass image array in Formdata()
I need to add a array of images on FormData, but only the first image is passing. I know the problem is in the code JS why when I send the form directly to the page php, works normal. Javascript var…
-
1
votes1
answer54
viewsHow to delete a TAB and its Div and check if it is the last item?
Follow the code of my attempt: $(function() { //for que inicie o tabs e depois de um refresh em todos os tabs existentes. for (var i = 0; i <= 9; i++) { for (var j = 0; j <= 9; j++) { for (var…
-
1
votes2
answers661
viewsRemove Class from a div Parent based on child element class
I’m using Lazysizes to load images progressively. https://github.com/aFarkas/lazysizes That’s the style of my project <div class="image-wrap"> <img class="lazyload" src=""> </div>…
-
1
votes1
answer40
viewsHelp to query a single database user’s information with JSON
This is the code that works with the img.php file function loadContato(){ var location = $('.result_File'); var item = ""; $.getJSON("img.php", function(dado){ item += '<p>' + dado[0].username…
-
1
votes1
answer242
viewsUpdate menu via ajax
When I clicked on the menu item of my application it always updated the page, I am changing to update via ajax the pages however I am having difficulties in relation to functions with names based on…
-
1
votes2
answers40
viewsGet a word from a variable that has more than one word, with jQuery
I have a JSON file with employee data, like full name, date of birth, marital status, position, salary. I need to show through a filter by name or surname, regardless of case or minuscule: Example:…
-
1
votes1
answer425
viewsApply jQuery mask to Modal
I have the following modal: <div class="modal fade" id="anti_fraude_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"…
jqueryasked 6 years, 8 months ago Sr. André Baill 6,946 -
1
votes1
answer243
viewsScroll according to clicked element
I have a list of links, example: <ul class="todos-links"> <li> <a href="#alvo1"> Alvo1 </a> <li> <li> <a href="#alvo2"> Alvo2 </a> </li>…
-
1
votes2
answers1816
viewsCalling function after opening Modal
I have this Jquery code: <script> jQuery(document).ready(function(){ // Numero de click var totalClicks = 0; jQuery('#addpayment').submit(function(){ var dados = jQuery( this ).serialize(); //…
-
1
votes1
answer111
viewsJquery . after()
The error in the code is that when I click on the "Add" button new input file, the intention is to add only one field after the last one, but the button triples. My HTML code looks like this:…
-
1
votes2
answers550
viewsCheck if any input file has been changed
My form has several inputs like this: <input type="file" name="imagem_file[]" class="form-control"> <button id="btnProdutoImagem" class="btn btn-info btn-block">Cadastrar</button>…
-
1
votes1
answer1001
viewsSending two or more request by form with ajax
Good afternoon guys, I want to know how I can send more than one form request to my Controller to do the relationship in the bank ? I have a relationship N:M with User and Group, only when I give…
-
1
votes0
answers167
viewsreceive two autocomplete values and pass to < input type='Hidden' >
how do I pass on a value 'ID - valor' of a autocomplete jquey and show only the 'valor' in the field input and pass the 'ID' to another input guy hidden. PHP if (isset($_GET['term'])){ $return_arr =…
-
1
votes1
answer388
viewsHow to clear search results in a list after clicking a button?
I have a list of items and a search field that filters this list as something is typed in this same box. I also have a button for reset that cleans the search box and focuses on it, but does not…
-
1
votes1
answer61
viewsSeparate Checkbox values
Good afternoon, I have a checkbox set that have 3 blue and 2 red selections. The priority selection is red, that is, if I take a red one even if I haven’t selected all the blue ones, the next one…
-
1
votes0
answers26
viewsChange between keyboard types (text - numbers)
Good night. I am developing an application (Cordova), that the user has to register an initial code with 2 (two) letters, 14 (fourteen) numbers and more 2 letters. I was able to make the input…
-
1
votes1
answer540
viewsUncaught Typeerror: Cannot read Property 'addeventlistener' of null
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>javascript</title> </head> <style> body, html { font-size: 150% } body { color:…
-
1
votes1
answer67
viewsCapture link and title, and move to a single modal
A list of 5 articles, with different links and titles, each with a link Share that opens a modal, where it has four buttons to be shared on social media. To be shared it is necessary to have the…
-
1
votes2
answers63
viewsHow to apply two validations at the same time?
I am trying to create a simple validation of two fields, where I only check whether there is a value or not, but the second if only runs after the first one is checked. I wanted the two of them to…
-
1
votes1
answer67
viewsHow to create a jquery object and insert it into mongodb via ajax?
I have the following structure in html: <form id="titulo"> <input type="text" name="nome"> </form> <form id="turno1"> <div class="linha"> <input type="text"…