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
answer643
viewsGet item from an array with jQuery
I have the following structure: [{tabela: 'tabela1', coluna: 'coluna1'}, {tabela: 'tabela2', coluna: 'coluna2'}] I need to insert this data into a div in format: [TABLE.COLUMN] In case it would:…
-
0
votes3
answers2552
viewsHow to clear input fields after Ubmit?
It is as follows: when you submit the form, in the [POST] method, the variables will be incapsulated in the URL bar. In the [GET] method, the variables are exposed in the URL bar. However, when…
-
0
votes2
answers146
views -
0
votes0
answers118
viewsJquery - Loop a function
Good evening everyone. I am learning a little Jquery and wanted a help. I have the following code: $(document).ready(function(){ $('#btnEnviar').click(function(){ var caminho = ("/uploads/");…
-
0
votes2
answers87
viewsDiv disabling jquery find next element
Friends, I have the following question: The following code below locates the next element from the select clicked: https://jsfiddle.net/cmftasor/ Works perfectly. The problem is that by including…
-
0
votes2
answers211
viewsChecking if element is visible with jQuery
I need to check the attribute visibility of a div. if ($('#divFiltros').css('visibility', 'visible').val() == true) { alert(true); } else { alert(false); } How do I check and get into this if of the…
-
0
votes3
answers222
viewsDisplaying disabled checkbox value
Hello, I created a very simple system where I enable 10 values of 25 and I want it to display with an innerHTML those that are disabled, I made this system with checkbox and I put them in variables…
-
0
votes1
answer355
viewsPHP Ajax - state combobox - cities
I want to select where, in a combobox, I select the state and open a new combobox with the respective cities of this state. I have it divided into two files: php states. //conexao com o banco... $rs…
-
0
votes0
answers51
viewsJS only works by updating the page
Click on the button: <td><%= link_to 'simulacao', simulacao_path(simulado) %></td> on the simulation/id page there is another button that requires js, but it only works if I update…
-
0
votes1
answer272
viewsInsert option in select Multiple dynamically
Good Morning!!! I need that when typing a process number and clicking on the magnifying glass, the process goes to the select Multiple box, as image attached. But I need this process several times…
-
0
votes1
answer217
viewsLabjs - error loading scripts
Please don’t show me the documentation link http://labjs.com/documentation.php or examples taken from there because this I have read, and honestly did not understand why my error code "from time to…
-
0
votes2
answers162
viewsDelete selected input from an array with jquery condition
I’m having trouble removing selected inputs from various inputs. I have the following code: $(document).ready(function() { var btnremoveimg = $('.remover-img'); btnremoveimg.click(function() {…
-
0
votes2
answers834
viewsjQuery fetch all checked checkboxes from a div through a click on button
I need to get all the checkboxes CHECKED of a <div> in which it has another <div> daughter that this, possess a <input type="checkbox"> via jQuery. Follows the structure: <div…
-
0
votes1
answer45
viewsInput not receiving Focus on click
I got the following script function CampanhaDefault(origem) { $("#ValorMinimo").parent().parent().hide(); $("#ValorParcela").parent().parent().hide(); $("#PDesconto").text("% Desconto")…
jqueryasked 9 years, 1 month ago Rafael Barbosa 2,855 -
0
votes2
answers515
viewsHow to validate drop-down with jquery-validation
I am trying to validate a drop-down list with jquery-validation and could not, I took an example and tried to adapt my need, I did this: The form that triggers validation: <form…
-
0
votes1
answer32
viewsHow to List Added Photos in View?
I have the following code in my View that takes the path of the photo, and saves in the bank. @using (Html.BeginForm("Upload", "PessoaFoto", FormMethod.Post, new { enctype = "multipart/form-data"…
-
0
votes1
answer249
viewsproblems with JS Handlebars
select box is not generating object array values within handlebars (selectMenu). In this loop I add the values inside an input: {{#each arr}} Here I separate what I send to create my template: var…
-
0
votes0
answers27
viewsdatagrid editing with navigation via arrow keyboard
Hello, I am converting a desktop system to web form, in one of the screens (of requests) I have the ease of the user to type order items and with the arrow down create new line(order item) and…
-
0
votes1
answer135
viewsHow to get toDataURL to save in a sessionStorage?
I’m using a library I picked up here at this link: https://github.com/fengyuanchen/cropper Only I already spent 2 days testing and looking for how to get the image cut with toDataURL to catch the…
-
0
votes1
answer768
viewsCatch the height of an image
In my project, I have an image that as the screen goes down 1000px, 860px, 320px, etc the image also changes its height. How to do to catch the height at the time of display? I need to know this…
-
0
votes1
answer764
viewsHow to get value and id within TD?
I have three action links within the TD of a Table. How do I get (in Jquery) the value and id when clicking on one of the links? Follow the code below: var dados = [ ['Banana', '10,00'], ['Maça',…
-
0
votes0
answers36
viewsHow can I call a jQuery function from within PHP?
I created a little animation with jQuery like that alert("mensagem") that will show whether the registration worked or not. How can I call this function (animation) jQuery through PHP? Here’s an…
-
0
votes1
answer168
viewsJquery onclick and focusout
I have my navbar with a search button that calls a slideToogle() and displays a form with a text input inside below my navbar. I want my form to be hidden when losing focus or the search button to…
-
0
votes4
answers6145
viewsCharacter limit in a DIV
How can I limit the amount of characters that will be inserted into a div ?
-
0
votes1
answer34
viewsCapturing URL parameter with jQuery
Current I am capturing the URL as follows: $(this).attr('href') Let’s assume the URL is: http:/test.com/login How do I capture only the end: /login
jqueryasked 7 years, 11 months ago Fábio Jânio 3,407 -
0
votes3
answers389
viewsConflict between jquery and min-jquery
I’m in trouble, because my code is giving conflict with the minjquery, I do not know what happens, when I put it all my other codes that I have do not work.... Help me please!…
jqueryasked 7 years, 11 months ago Tena Andrade 1 -
0
votes1
answer523
viewsHow to do onkeypress function in dynamic field
I have a search screen where there are several checkboxes that, when selected, display dynamically generated fields. I would like to put a "onkeypress" function so that when the enter button is…
-
0
votes0
answers56
viewsUncaught Syntaxerror in an ajax code
I’m creating a chat, but in the console it gives the following error: Uncaught Syntaxerror: Missing ) after argument list Code: http://www.redepurple.com.br/social/Code/chatjs/chat.js What can it…
-
0
votes1
answer154
viewsmodal multiple > Bootstrap/JS/PHP
I used this link as a reference for creating my Modal: Open Multiple Bootstrap Modals. After opening a modal and clicking outside the modal box, when we return to page, an automatic style of…
-
0
votes1
answer430
viewsjQuery conflict with Angularjs
I’m having a problem with AngularJS and jQuery. When I only use jQuery in the layout, the menu (sidebar) I have opens normally. But when I add Angularjs the menu does not open anymore, it is simply…
-
0
votes2
answers354
viewsMouse events (when passing an x element) Jquery
Well, I’m having trouble with mouseenter(). it only fires the event if I click, I need that when passing inside an element(div) it fires the event. Like I’m doing: $('#<?php echo…
-
0
votes1
answer453
viewsDetect SHIFT key pressed and direct mouse click
Hello I need to create a shortcut where by pressing the SHIFT key + LEFT mouse button, displays an alert. How to do this very simple and using Jquery ? Thank you
-
0
votes2
answers46
viewsremoveClass with jQuery
Guys use the following code in jQuery to remove a class from a TR one-table. $("tr").removeClass('text-white'); It works very well, but it is removing the tr of all tables, I want to know how to…
-
0
votes1
answer1794
viewsRedirect to mobile site
Hello I’m making a version of my mobile site using in case redirect script on javascript works perfectly with everything I see that this script has a flaw because as it comes to redirect checking…
-
0
votes1
answer188
viewsDynamic settimeout with PHP
I’m trying to get a certain time post update every 1 minute. Code: setTimeout(function() { var ID = $(this).attr('id').split('hora')[1]; // pega o ID e retira a parte "like"…
-
0
votes1
answer868
viewsRecover data in Modal in PHP
I have a button that calls a screen modal, passing the ID of the registration in question. I would like to know how to recover the data from that ID, at the moment that display Modal, so that it can…
-
0
votes2
answers566
viewsDisplay selected input value
I have two inputs with their respective ID’s, I would like Alert to be displayed the value entered in the selected field, so if I am typing in field 1 will be displayed the value in Alert referring…
-
0
votes1
answer293
viewsTrigger ~ HTML5 Download Attribute
Good morning, you guys, I have the following flaw : I need to download some text files (.txt) with the attribute download but I need to do this automatically, when I click the page or a Rigger that…
-
0
votes1
answer43
viewsCkeditor does not display php tags in textarea
I’m using Ckeditor, everything goes well, however, I can’t make posts ('tutorials') that contain php tags. For example: <?php acho 'teste'; The tag <?php is not displayed. Is there any…
-
0
votes1
answer336
viewsJS event error to force and rename Download file
Hello, I have a Script to force download via remote URL that I got as answer here on the site, however I think I must have done something wrong because the Download event is not starting and not…
-
0
votes1
answer244
viewsHow to show a confirmation message after checking in Servlet?
Good afternoon, you guys! By clicking the Change button, I perform a check to see if the data in the database remains the same. How do I return a confirmation window if the results are not the same?…
-
0
votes1
answer2073
viewsChange text within a dynamically generated <span> element without destroying the nested element
My need at first seems basic, but I can’t find a way to change the text within a tag <span> that is dynamically generated. Below follows the excerpt from DOM in which I have the following…
-
0
votes2
answers67
viewsReturn image value
I have this html code: <label> <img class="jogo" value="lol" src="../cdn/img/jogos/lol.png"> <img class="jogo" value="csgo" src="../cdn/img/jogos/csgo.png"> </label>…
-
0
votes3
answers623
viewspass form name to jQuery
I have the following function that sends a form: function enviar_formulario() { document.search.submit(); } When I want to call the function I do so: <select name='busca'…
-
0
votes1
answer321
viewsJquery is not working
I’m having trouble making jquery work. Here’s the head of my HTML: <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no"> <script…
-
0
votes1
answer47
viewsajax upload does not pass variables
I’m not getting past the variables in the ajax method. <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo" /> <input type="hidden" name="ID_Cotacao"…
-
0
votes3
answers2581
viewsjquery datatables requested from the server with parameters
I have a search form where I put the NIF to do a search. Using datatables to fill in the information that is returned by echo json . have this code in javascript the data.id sends the id to php .…
jqueryasked 9 years ago usersantos 765 -
0
votes0
answers37
viewsOptional ninth digit using Jquery Mask Plugin
How can I make Jquery Mask Plugin formatting automatically fit the number of digits? for phones with 8 digits and/or 9 (optional), it looks like this: $(document).ready(function() {…
-
0
votes1
answer1898
viewsHow to disable <option> according to <option Selected>?
I have a list of users and each of them will have one or more functions (example: Leader, For Knowledge, Participant). If I choose the "Leader" option, the other options (from the same select)…
-
0
votes0
answers43
viewsQuestions about redirecting with Location.replace
I am sending a form with AJAX and after sending, and the JSON return is positive, the user is redirected, I am using the method window.location.replace(redir_url), but I am still able to go back to…