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
-
2
votes1
answer1184
viewshow to remove an append
would like to know how do I remove only the append which has been cleared by checkbox, for in my code when I select a certaincheckbox he adds a append of a img and when I click on it again it…
-
2
votes2
answers347
viewsLocal Storage - Always replaces last data
I have this code: var ClienteArray = []; $('#btn-save').click(function(){ var cliente = JSON.stringify({ Code : $('#stn-code').attr('value'), Name : $('#stn-name').attr('value') });…
-
2
votes2
answers1489
viewsHow to execute one code only after finishing another?
I need to run the search for cities only after I finish loading the states within select and capturing the ID. I’m taking this ID to send another Ajax that will popular the cities of this state…
-
2
votes1
answer181
viewsMasks in form fields in modal Woocommerce
I have a problem that I think is simple solution, but as I am layman in javascript and jquery would like a help from you. I inserted two new fields in my Woocommerce login screen, cell phone and Cpf…
-
2
votes2
answers48
viewsReduce this jquery to only 1 block and not 3, how do I do?
How best to reduce this code below to only one block? It was only using a porem when I put the mouse on an icon the effect Hover appeared to all. $('.sidebar-chart-1…
-
2
votes0
answers97
viewsError while sharing screen via Browser (Chrome and Firefox)
I’m trying to make the Screen Sharing dialog appear in Chrome, but nothing happens. I am using the following code (Just to display the dialog, I will stream to the server when it works) function…
-
2
votes0
answers32
viewsHelp with Calback validationEngine
I’m using the validationEngine for a form validation and sending after all completed. So far so good. However I need to recover some data from the registration after confirmation. Once the user…
-
2
votes1
answer652
viewsHow to copy a value within a span
I need to copy a value from inside a span that is generated by a slider, it whenever it moves the slider it is changed. It has how I put it within a value of an input? I tried that and it didn’t…
-
2
votes1
answer33
viewsJquery function executes when I click on a button with back() function?
I have a form that I send to a function with $.ajax That shipping by Ubmit, this works well. The problem is that I have a button that I do a back() to return the page and when I click on that button…
jqueryasked 8 years ago FernandoPaiva 1,562 -
2
votes0
answers64
viewsONCLIK JQUERY for IFRAME does not work
I make animated banners in Google Web Designer and use an IFRAME to call them on the page, I used a JQUERY code so that when clicked on top of IFRAME it would open another page but when I add 2 or 3…
-
2
votes3
answers619
viewsUrls array - Next button
PHP $urls = Array('www.1.com.br','www.2.com.br', 'www.3.com.br'); HTML <iframe src="www.1.com.br" width='100%' height='100%'></iframe> <button>Proximo</button> How do I…
-
2
votes4
answers232
viewsHow to change the date order of an implode from a jquery datepicker
I have the following $_get : if(!empty($_GET) && $_SERVER['REQUEST_METHOD'] == 'GET'){ $v_ocorrencia = $_GET['ocorrencia']; $datainicio = $_GET['datainicio']; $datafinal =…
-
2
votes1
answer407
viewsjavascript validate if the number contains +/-
I have a problem, I have a function that makes a debit in the database, but if the User changes the quantity by putting arithmetic operators the value is negative, thus crediting credits to the user…
-
2
votes1
answer323
viewsHow do I perform a text search and select tag together?
I’m here because I’m having trouble doing a search like any other with <input text> and "search" button only with the tag <select> where they contain in each <option> to value…
-
2
votes1
answer835
viewsFunction being executed twice jQuery
I got the following jQuery: $("#salvar_festa").click(function() { var id_cliente = $("#id_cliente").val(); var id_pacote = $("#id_pacote").val(); var tipo_reserva = $("#tipo_reserva").val(); var…
jqueryasked 8 years ago Sr. André Baill 6,946 -
2
votes2
answers449
views -
2
votes0
answers41
viewse. preventDefault() does not work
I have the following code: <script type="text/javascript"> $.post( "pesquisar.php", { titulo: 'Luan' }) .done(function( data ) { $(".result").empty().html(data); });…
-
2
votes2
answers104
viewsbootstrapValidator.js with jsf does not work
My validation script using bootstrapValidator.js <h:outputScript library="primefaces" name="jquery/jquery.js" target="head" /> <h:outputScript library="primefaces"…
-
2
votes1
answer194
viewsOpen DIV with Select in div Cloned with jquery
I have a div that can be "cloned" in jquery, I need that when clicking on "Show Product" appears the product tab and shows a select, and when clicking on that select open the div GROUP 1 (inside the…
-
2
votes2
answers55
viewsHow to know that called the screen
I have two screens List and Filter, both are redirected to a third screen called Visualise: Button View from the screen List: //ABRE TELA VISUALIZAR $(document).on('click', '.visualizar',…
-
2
votes2
answers210
viewsCalculate duplicate input value
I have a div with 3 inputs (value, aliquot, total value) they are inside a clone div in jquery... I can calculate through id as in the code below, but since it is cloned in jquery only works in the…
-
2
votes2
answers410
viewsForm only submits with the Enter key
Inside the backoffice of a Prestashop-based store V.1.6.1.3. When I try to register a product, it happens very strange problem that does not present error in anything even using debug mode on:…
-
2
votes1
answer271
viewsHow to upload image to Ckeditor interface?
I built a small blog with help from Laravel 5.3 framework. In the area of creating posts I’m using the Ckeditor, but I’m struggling to build an efficient upload "method/scheme". There are many…
-
2
votes2
answers646
viewsEncoding problem Servlet, json and jquery.ajax
I created a Servlet q returns a simple JSON. I was able to consume it quietly, but by putting the content in a div was as follows: 0: �gua 1: a�ucar 2: sal 3: canela 4: �leo Looking at the return of…
-
2
votes4
answers3391
viewsPerform Jquery percentage calculation
Good afternoon, everyone. I have a field with readonly value. This field already filled with data from my bank. I have another field, where I will enter the percentage value. How do I get the result…
-
2
votes2
answers619
viewsWhat is the correct way to use an npm-installed package?
To explain my question I will use jquery as an example. I installed jquery from npm (npm install jquery). Then npm created the jquery dist node_modules folder where the jquery file I need is…
-
2
votes1
answer169
viewsChange element color when clicked
I have this code, it shows 1 video when clicking on a table. Is it possible to change the color of the element that was clicked in the same way as with links? but with CSS? Example: video 1 color…
-
2
votes2
answers1374
viewsCalling layouts within a modal
I have an application ready with its own layout, and within this layout I use the fancybox. Only now I am obliged to migrate to the bootstrap and I’m using the Adminlte-2.1.1 for fitting in with…
-
2
votes2
answers1834
viewsSelect option when clicking button
I have 3 buttons outside the form tag and when clicking on some of them, I need the value to be selected in select, follow image and code for better understanding: Buttons (outside the tag form)…
-
2
votes2
answers220
viewsJquery problem in handling ajax data coming as array
My array returns from php like this (post): Array ( [0] => Array ( [O email digitado é invalido! Por favor insira um email correto.] => 1 ) [1] => Array ( [O telefone digitado está num…
-
2
votes0
answers77
viewsMouseover effect to spread superimposed icons/images
Hello, on the system I am working on there are some icons/images (which are div’s) that are sometimes superimposed. This is the correct functioning of them, they update their positions automatically…
-
2
votes1
answer75
viewsMap all Divs values and perform a mathematical operation
I have the following structure: <div class="product-price"> R$ 140,00 </div> <div class="product-price"> R$ 165,30 </div> <div class="product-price"> R$ 12,55…
-
2
votes2
answers1667
viewsHow to do a simple "ping" on external sites returning status: 200, 400
I’m a beginner in Javascript, Angularjs and jQuery. I have already broken my head here and I could not solve the following solution using as a basis the Javascript: I want to make a list of the…
-
2
votes2
answers8681
viewsHow to add and remove required input with jQuery?
I have a select with two option, when I select the first option I want him to show me a input field with the required attribute and when I select the second option I want him to do the same, only by…
-
2
votes1
answer3488
viewsWhen closing modal, clear search result done in the bank
I need to close and limparthe content of a modal. When opening it I have a search field where I perform a search in my bd, and by clicking the button enviar I close it by passing some parameters.…
-
2
votes1
answer288
viewsReturn array() in jQuery
I have the following HTML list <table class="table table-bordered"> <tbody> <tr> <th width="50" class="text-center">#</th> <th>Item do Pacote</th>…
jqueryasked 7 years, 12 months ago Sr. André Baill 6,946 -
2
votes1
answer88
viewsDivs with alternating colors
I have an ajax that shows the results to me in a JSON, I need the colors of the <div> alternem: in the first gray color, in the second white, in the third gray, in the fourth white and so on.…
-
2
votes0
answers54
viewsDropdown dependent upon DIV loading
I have in the file Fields.php the code below, which selects the company and according to the request will load divs with specific fields for that request. On the first request, I have to load the…
-
2
votes1
answer404
viewsFill a select with callback $getJson Asp.Net / Jquery
What I need to do is this, I have a select with the states, when the person changes that state I need to fill another select with the cities. This is the state select : <div…
-
2
votes2
answers1528
viewsFilter c/ AJAX + PHP
Within my system, the user logs in, some information searched in my database is shown, follows function that searches the data and how they are listed: Function # função que busca os dados de…
-
2
votes1
answer512
viewsDoubt on how to change jquery Mask type
Well I’m using the jquery Mask plugin at input value. The formatting I am using is the following '0,000'. I wondered how to change the formatting to '0,000' when I select KG in select'.…
-
2
votes1
answer103
viewsProblem with JS/Jquery/Ajax
I have a button that when clicked it performs a function: function searchTradeItems() { var uid = $("#useruniqid").val(); var iusername = $("#username").html(); var userid = $("#balmung-id").val();…
-
2
votes1
answer468
viewsCLASS="active" according to a selected tab
Hello! I intend to create a notepad where a heading and a note will be inserted. For each note inserted, a tab will be created. I want to click on the tab and load the title and note into an input…
-
2
votes3
answers349
viewsI need to clone the contents of a div and put in the form of my modal
Good afternoon, everyone. Once again I come to you about a problem I have. I need to use the syntax below in a modal. $("#divConsulta").clone().appendTo($("#formFruta")); In the row below when…
-
2
votes2
answers816
viewshow to hide and show the element by changing the css with jquery
good evening I would like to know how I can hide and show my div with the class clic as per the checkbox selected. I have several checkbox and as I select or deselect the checkbox i want it to show…
-
2
votes1
answer2289
viewsAdd and remove jQuery inputs
I have the following form: <div class="col-md-12 form-group"> <div class="row" id="dep"> <div class="col-md-10"> <input type="text" class="form-control" placeholder="Nome do…
jqueryasked 7 years, 11 months ago Sr. André Baill 6,946 -
2
votes2
answers148
viewsPaste a treated text where the pointer is
I have the following problem: Some people in my work copy texts of some words and paste in forms which I do (inside the GED), but sometimes in this copy and paste it take with the text some invalid…
-
2
votes3
answers58
viewsWhat’s wrong with this js code?
The first part of the code separates the URL into / This is the current URL www.meudominio.com/category/action var url_atual = decodeURI(window.location.href); var replace_url =…
-
2
votes1
answer118
viewsRadio input(materialize) animation does not track properties
I am trying to manipulate the radio input dynamically and the property(checked) of the element is being manipulated correctly, but the animation of the field does not follow this dynamic, the first…
-
2
votes0
answers135
viewsFadein and Fadeout with Angularjs
I would like to know the best practice when showing warnings to the user, using Angularjs. My scenario is basically the following: I have a div that represents all CRUD validations, within my…