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
votes3
answers1807
viewsHow to do something asynchronous with jQuery, search in Mysql with PHP?
I’m having a lot of trouble with this part. I want to simply do a database search and move on to my main program, this without giving a refresh. I know how to do all part of PHP and Mysql, however…
-
1
votes2
answers771
viewsHow to remove a grid column using jquery
I have a grid where I have to leave a hidden column, I’m doing this way more is not doing the way I would like because I have no way to predict how many lines will have in this column. I have a…
-
1
votes2
answers100
viewsError capturing checked attribute
JQUERY $('#caption-item-1').click(function(){ if($('#boleto-input').checked == true){ $('doacao-proximo-1').css({'display':'inline-block'}); }else{ $('doacao-proximo-1').css({'display':'none'}); }…
-
1
votes1
answer647
viewsupdate Combox after closing the modal bootstrap
Colleagues, I have a system where the customer clicking a button opens a modal bootstrap for him to register a matter. I need to make sure that when registering, the Box where the materials are. I…
-
1
votes1
answer1397
viewsCustomize Html5 player volume bar
Friends, I have an Html5 player with all standard controllers. I would like to make a volume controller in this same style: My code so far <audio id="demo"…
-
1
votes1
answer64
views -
1
votes1
answer351
viewsAdd class to on scroll element
I have a site that in css, have these statements for the body: body { background: #fab52d; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 1.6rem; color: #FFFFFF; overflow: hidden;…
-
1
votes1
answer191
viewsPost to two tables simultaneously in AJAX
the code below it is working, however my doubt is the following: There is some way to make a post in two different addresses simultaneously using this same code without repeating it? For example, in…
-
1
votes1
answer390
viewsHow to Add Mask in ajax input via jquery?
Hello guys I have a function that edits the table dynamically, but the data contained in it has formatting coming from the database, but when I double click it does not remain with the mask. the…
-
1
votes3
answers906
viewsFormat date on page load
Hello I wanted to format the date of my form on the page loading, because the date is coming from the database in international format (yyyy-mm-dd). I did this function to format my date, however I…
-
1
votes1
answer575
viewsHow to use an ajax return in any part of the script?
I have a Json that is returned via ajax, I wish I could manipulate this return throughout my script, outside the scope of Ajax, so I don’t have to do a function that does everything within this…
-
1
votes1
answer113
viewsjson array with javascript serialize not working
I have this form: <form> <select name="data"> <option>0831</option> <option selected>4731</option> <option>9831</option> </select> <br />…
-
1
votes1
answer75
viewsWhy doesn’t this function work in Mobile Browser?
I’m using the code below to search for data in a json, and it works perfectly in Chrome and Firefox, but in mobile browser it doesn’t work, and just doesn’t return anything: function…
-
1
votes1
answer443
viewsTake select values and add their data
<div class="row"> <div class="form-group col-md-3"> <label for="servico">Serviço</label> <select> <option value="200">Escapamento / Montagem R$ 100</option>…
-
1
votes0
answers127
viewsupdate character counter of an input
I have a page on which you can add fields where by clicking "create new field" opens a modal with a input with a character counter and two buttons, you can add as many fields as you want. However,…
-
1
votes1
answer586
viewsMerge two objects into one with conditional attributes in Javascript
I have the following dilemma, I need to assemble an object to send to a API rest. But I have data that starts from a variable. I thought of several ways to do this but I don’t know which one is…
-
1
votes0
answers18
viewsToggle slide using Jquery
I have 3 links with 3 contents associated with them, when I click on one of the links to div with the corresponding content is displayed. Case another div that is not corresponding is already being…
-
1
votes1
answer1133
viewsCreate dynamic inputs from a json object
I have a form that the user can add several languages who can speak, this form consists of a dropdown and a button to add the respective language. At the moment I click on the add button it adds new…
-
1
votes2
answers951
viewsWhen clicking an option from a list, hide options from another select
I would like, for example, when choosing the option '10 people' in the select 'Size', I could hide specific options in the selects 'Model', 'Fillings', 'Options to Drain' and 'Decoration'. Example:…
-
1
votes1
answer91
viewsHow do I keep the site elements in the same place all the time?
I have the following HTML code: <div id="geral"> <p class="texto_grande_titulo">...</p> ... </div> In the CSS: div#geral{ background-image:url(../imagens/borda.png);…
-
1
votes1
answer475
viewsFirebase - Print records in descending order
I can’t print the records in descending order. I looked on several websites for tips that could help me, but when I adapt to my code, nothing works! My question is this:: I’m creating a game on…
-
1
votes2
answers33
viewsDetect user output from text box
I have a text box that displays the remaining characters, as I do to take this information, using javascript, when the user has already clicked on another text box (per example)? HTML of the box and…
-
1
votes1
answer69
viewsProblems with IF loop
I’m having trouble creating a bond if in the jquery so that when the carousel runs the function carousel() he makes a noose if, the problem is, it only runs once the if, and then stops performing…
-
1
votes2
answers1484
viewsCreate a multi-category filter using a <select>
::EDIT:: Currently, the official code is like this, but the Almer code still does not work: Javascript <script> $(document).ready(function() { var arraySelects = ['modelo', 'massa'];…
-
1
votes2
answers126
viewsSelecting attributes from Bootstrap
Well, I’m having trouble selecting an attribute from a certain element of bootstrap with the jquery, for example: <ol class="carousel-indicators"> <li data-target="#carrossel-principal"…
-
1
votes1
answer475
viewsSend data from a partial view to a MVC controller
I want it to be rendered a partial view corresponding to the value of select option. Index.html @{ ViewBag.Title = "Index"; } <h2>Contato</h2> <form class="form-horizontal">…
-
1
votes1
answer50
viewsReturn more than one variable in Jquery/PHP
Being objective, my problem is this: I have a form in PHP/HTML and I am using a self-paced field via Jquery. This form brings the last numbers wagered by the user and redoes the bet with this…
-
1
votes2
answers1004
viewsTransforming string text into picture
Hello, I’m developing an app and I need to, at a certain point, take a string that contains data from a voucher and turn this text into a voucher image and then share this image via Whatsapp. I…
-
1
votes1
answer57
viewsHow to collect and insert gradient properties from one div to another div
There is this website CSS gradient generator. And there, as you can see, when we click on the little squares of choice with gradient it carries all the gradient properties to another larger div. I…
-
1
votes2
answers665
viewsWhen using jQuery append displays the text [Object Object] and does not insert the element
I created a div.box in html and I want to insert another div that I create in the execution of the code, follow the avaixo: HTML: <div class="box"></div> JS: var item = $('<div…
-
1
votes1
answer41
viewsPrimefaces Dragdrop does not fire event
I’m trying to do exactly what’s in the documentation on DataGrid I drag the components and loose in the p:droppable, but nothing happens, it gives a revert and does not create the table as in the…
-
1
votes2
answers90
viewsJquery - Is there a way to connect buttons?
I am beginner in programming I am working with wordpress. On the site I’m helping I have a Slider Revolution with 4 balloons that will serve as buttons. And in the body of the site I have a…
-
1
votes0
answers63
viewsGroup elements based on values
JSON: var obj = { 'itemA' : { 'x' : '300', 'y' : '200' }, 'itemB' : { 'x' : '305', 'y' : '210' }, 'itemC' : { 'x' : '442', 'y' : '210' } }; What I need to do is take these items and instead of…
-
1
votes2
answers178
viewsIdentify the right textarea to send when pressing Enter?
I had "solved" a problem of sending a textarea by pressing Enter on my application, but ended up only sending to the first textarea of the page. The application loops posts recorded in the database…
-
1
votes3
answers404
viewsjQuery - How to filter a JSON file from an external link?
I have a headache that is: I need to make a filter by names of the following JSON (summarized)... [ { "index": 0, "age": 25, "eyeColor": "green", "name": "Peck Murphy", "gender": "male", "company":…
-
1
votes2
answers370
viewsHow to capture the value of the src attribute of an iframe?
I have to capture the value of an iframe attribute in pagina.html, from the parent page pai.html. I’ve tried everything but failed. pai.html: <iframe id="meuframe"…
-
1
votes1
answer212
viewsHow to place a GET order on each line with jQuery
Hello, I have the following code: $('#checar').click(function() { $.ajax({ type: 'GET', url: 'checar.php', data: { lista: $('#lista').val() }, success: function(data) { $('#sucesso').html(data); }…
-
1
votes0
answers276
viewsProblem with modal screen opening using bootstrap
I’m new to web programming, and I’m having a problem opening a modal screen using bootstrap. Basically I have a grid controlled by ng_repeat in which I have buttons when clicking the edit button I…
-
1
votes1
answer783
viewsReal-time data filter using Jquery
I am building a comment system and I would like when the user selects the value of a select field, a variable is sent to a PHP page with the selected value, and the same returns the results within a…
-
1
votes0
answers32
viewsHow to return a closure method out of scope when there is ajax response
I did the following method using the library xeditable: $('[data-id]').on('click',function(e) { e.stopPropagation(); var _self = $(this); var id = _self.data('id'); var editableElement =…
-
1
votes2
answers508
viewsload in css and jquery
I’m trying to make a system of load to inform the user that the page is being loaded. I have a php page that mounts a very large report, and it takes around 10 seconds to display. On how much this…
-
1
votes0
answers5038
viewsAjax request with Jquery
Good morning, In my work, a biometric reader system was implemented to control the output and entry of personnel. Such a system has an API, which gives access to your data. Every API is in Ajax with…
-
1
votes2
answers142
viewsPopular Dropdownlist from another
Good morning, I have a Dropdownlist populated from a Model class. Example: Processor, Memory, HD After clicking "+" I have to add another Dropdownlist with all values less the value selected in the…
-
1
votes1
answer694
viewsProblem when making request with ajax in Laravel 5.4
I am learning the web language for creating my website and using the Laravel 5.4 framework, and having problems with sending forms with ajax. Every form I submit, returns me the error: Unprocessable…
-
1
votes0
answers44
viewsHow to store previously checked Checkboxes values?
Hello. I’m making a system that allows access to folders. I search the folder, which has its id and permissions saved in the database, select it, loading its subfolder and checkboxes are loaded to…
-
1
votes1
answer53
viewsUse fadeOut('slow') in Ajax Array that contains several id
Hello, I have an ajax function, in which I remove several lines in an html table. The function collects several id that will be deleted, I would like to make a fadeOut('slow') when the function is…
-
1
votes4
answers2194
viewsHow to block the click on an input
I’m trying to block the click on one input Html <input id="txtData" class="form-control" /><span class="input-group-addon" data-role="data"><i class="glyphicon…
-
1
votes2
answers85
viewsHow to get element id from find method?
I am cloning a row in the table, I can insert a new value to the id, but I would like to concatenate a new value to the id existing. $("#addRow").click(function() { $clone = $('#tabela…
-
1
votes1
answer384
viewsHow to select multiple checkboxes from Array ?
In my HTML you have the following line: <label class="turnoCurso pretoClaro" id="3"> Vespertino, Noturno </label> I need to turn the turns that are brought from the database into an…
-
1
votes2
answers727
viewsCalculate inputs with Jquery
I’m having trouble understanding how input calculation works with Jquey. I will show the following example: <!DOCTYPE html> <html> <head> </head> <body> <input…
jqueryasked 7 years, 8 months ago Rogério Pancini 71