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
answers325
viewsJquery - Best way to select the same element
My system works in the form of SPA (Single Page Application), I load all the functions that I will use in the system in a single file (which is light by the way), the problem is that every time I…
-
1
votes2
answers642
viewsapply event to an input with jQuery
Well, I need to apply the event $(".margem").keyup(); only for input containing a value greater than 0. Note that when changing the cost value the system applies the event $(".margem").keyup();…
-
1
votes0
answers20
viewsMagic mouse is skipping the sections when scrolling
So when I use a normal mouse, the scroll is correct, but when I use the Mouse, it skips one-two sections. How do I fix this? I tried to add a delay(100) when the user had using MAC that even solved…
-
1
votes0
answers357
viewsreCaptcha in lightbox
Hello, I am trying to insert a recaptcha on a page, I managed to successfully insert into the contact page through a form in AJAX. The problem is in an AJAX form that is inside a lightbox (In this…
-
1
votes2
answers799
viewsCan I return 2 value in an Ajax?
I have the following script: ('#AjaxUpdateClient').submit(function(e){ var id = $(this).attr("id"); var form = $(this).serialize(); $.ajax({ type: "POST", url: "/updateClient", data: form, dataType:…
-
1
votes2
answers603
viewsenable and disable Ubmit according to input field validity
I have a form inside a modal, serves for registration of company. I’m trying to get the Ubmit button disabled until the company zip code and cnpj are typed in the correct way. I’ve done a similar…
-
1
votes2
answers354
viewsNavbar collapsing after selection?
When using the navbar bootstrap on a mobile phone it does not return to normal after clicking on option menu. In the following example the navigation bar is replaced by a button in the upper right…
-
1
votes2
answers394
viewsCalculate percentage of total HTML columns with Jquery
I have a table that is automatically generated by PHP and manipulated by jquery, only I need to calculate the percentage of the total of each of the numerical lines, what is the best way to do this?…
-
1
votes0
answers27
viewsInstall and use a library via NPM
I’m beginning to understand the NPM now, I am very old school and I need to update myself. I installed via NPM Jquery and some library to test (Inputmask). It seems that everything worked out, the…
-
1
votes0
answers53
viewsHow to use Flot Chart on a web server?
Good I have an Apache web server running on a pi Raspberry. This web server has a view_action.php file that does include from another Graph.htmlpage. This Graph.html is a copy of an . html code from…
-
1
votes1
answer35
viewsData jQuery problems
I’m having a little problem in my jquery code, I wanted to make a sum in which I put the value in the input + the span value in a div and generate it in another span, but it does not show me…
-
1
votes1
answer58
viewsPass variable in Jquery
I have a template, that has this javascript: var _latitude = -22.0565972; var _longitude = -46.9794721; //var jsonPath = 'assets/json/items.json'; var jsonPath = 'assets/json/items.php'; // Load…
-
1
votes1
answer50
viewsDoubt with DATAPICKER
I am using Datapicker and would like to ask a question about just enable a specific day. <script> $(function () { var datepicker =…
-
1
votes2
answers367
viewsRun javascript counting click to show option on screen?
I have a code that shows fields on the screen according to the click, after the first click it will increment a variable 'Qtdclick', occurs that I did not want to show all fields, I only want when…
-
1
votes1
answer51
viewsHow is a PHP page updated/included via AJAX?
I started thinking about using AJAX in an application I’m developing, but I found some problems with it. I would like to understand how it works, to make the most of this "tool". I had no problems…
-
1
votes1
answer45
viewsmultipleSelect jQuery does not update incoming JSON values dynamically
Could someone explain to me why the class multipleSelect() of jQuery does not update the values received via JSON? For example, when I select a state, in my other selection field, the related cities…
-
1
votes1
answer329
viewsHow to sort a select option alphabetically with jquery?
I have a select option to list through a each in jquery what I intend to do now and order that each by alphabetical order when listed. Jquery $(document).on("click", ".btn-add-agent-proximo",…
-
1
votes1
answer144
viewsHow to show buttons for each menu option?
$(document).ready(function() { $("#myModal").modal('show'); $('#myModal').on('show.bs.modal', function(e) { $('.chosen-select').chosen(); }); }); <link…
-
1
votes1
answer2812
viewsHow to select the ids of a table with checkbox and save in the bank?
How to select some items from a dimanica table coming from the mysql database and loaded into a table using javascript or jquery and set those marked with checkbox to category as 'sport' in the…
-
1
votes1
answer2126
viewsLoad a table dynamically with ajax
I am trying to build a table by making a request to the server and populate it with the return. The server return is correct, but when you enter the function(data), I realized he carries my entire…
-
1
votes0
answers61
viewsSearch words on page and replace
Friends, I wonder if it is possible to create a method that scans an html page or only inside a div, looking for a specific word and replace it with another word. I’m trying to do this because I’m…
-
1
votes1
answer51
viewsImprovements in dynamic content
Good afternoon, I have a function in jquery that I have been improving since I discovered it in forums, it serves to create elements dynamically using jquery /* função que insere e remove cadeia de…
-
1
votes2
answers13141
viewsHelp with jquery Uncaught Typeerror: $ is not a Function
I have a problem with a filter selector, when I choose a city to filter information about it, the browser console shows me the error below. I can’t tell which version of Jquery is being used on the…
-
1
votes1
answer157
viewsLaravel 4.2 and Ajax image upload
I am trying to make an image upload, to save along with the rest of the fields, but when I press the save button, the picture field will empty.. This is the Form <div class="panel"> <div…
-
1
votes1
answer36
viewsselect goes blank when giving history.back()
I set up a system where I inform the state and jQuery loads the cities. The problem is that when I run a history.back() and back to the form page select city goes blank. How do I make it not lose…
-
1
votes2
answers1541
viewshow to filter a json object?
I have the following json object: var json = { "acao": "listaHoteis", "hoteisPesquisa": [ { "home_id": "1", "nome": "Itamarati" "preco": "925" }, { "home_id": "2", "nome": "copacabana" "preco":…
-
1
votes0
answers37
viewsWhat would an event like in the input range look like?
I am creating a custom progress bar for videos, but I have a certain difficulty in detecting when the user tries to drag the reed through the video bar, I want to simulate something similar to what…
-
1
votes1
answer276
viewsHow to filter a json object with jQuery?
I have the following json object: var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }, "quarto":[ { "quartoUh":[…
-
1
votes2
answers44
viewsShow textarea corresponding to href
I have this piece of Javascript/jQuery where I have a textarea hidden and a href. The intention is to click on href to textarea appear so the person can type in his or her answer. I’m having trouble…
-
1
votes1
answer122
viewseffect with jQuery in select
Good am mounting a custom input with the style of the material google design. The effect is working on the input, but in select it’s not working. Does anyone know what I’m doing wrong? Note: The…
-
1
votes1
answer348
viewsCreation of tables through div
I would like to create a table structure that can have a variable number of columns, for example, an hour may have only 3 columns and at another time may have 5 or 6 columns, this number is not…
-
1
votes1
answer141
viewsFilter does not work because of return accentuation problem, what to do?
I am working with datatables and php, so server side. I have been making custom filters with it, everything working ok, with a save exception, the words that have accentuation, does not work in the…
-
1
votes1
answer177
viewsHelp with Javascript filter
I have the following Javascript code: JSON var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }, "quarto":[ {…
-
1
votes2
answers497
viewsShow and search fields and according to selected checkbox field?
How do I make these rules work at Checkbox? When Selected "outsourcing" Shows "divOutsourcing", When You Select "audit" Shows "divAuditoriaOptions", When You Select "consulting" Shows…
-
1
votes1
answer86
viewsPreserve line breaking when Replicate val() content in span
Good afternoon, according to this topic - /questions/203969/replicar-conte%C3%Bado-de-val-em-span I have the following code $('textarea.skills_knowledge').blur(function() { var skills_knowledge =…
-
1
votes1
answer450
viewsSlider Range of jQuery
Hey, how you doing? I have a code that filters the data of a JSON with jQuey, I can filter with pre-defined values in a variable. But I wanted to use the values of a jquery ui slide range to filter…
-
1
votes1
answer68
viewsIs not Function JQUERY
$(".add").click(function(event){ save($(this).parent().attr("id")); }); function save(docName){ var inputs = $('#' + docName + ' input'); var selects = $('#' + docName + ' select'); var obj;…
-
1
votes2
answers321
viewsSometimes jquery does not work
I have a button on a tab that calls an API. The button lets you follow a user or stop following. Clicking on the button changes a label that is next to the button and the symbol that is on the…
-
1
votes1
answer274
viewsCustom filter range of number datatables
I’m trying to make a custom filter by selecting a range of numbers with the datatables and it only works once. I tried several ways and none worked and researching found nothing, so I come here to…
-
1
votes1
answer177
viewsAnimation during ajax request
Personal I have an ajax request, Only it is taking a little while, she only gives me the return when it is successful or not, but during the request I do not show the user how the procedure is. How…
-
1
votes3
answers373
viewsMount html structure with result of ajax array?
I would like the following structure for my page: <div id="ProdutosSeller" class="col-md-3 col-sm-6 hero-feature"> <div class="thumbnail"> <img src="imagem" alt=""> <div…
-
1
votes1
answer868
viewsHow to apply sessionStorage or localStorage in code
I’m using the following code: <script type="text/javascript"> $(window).scroll(function() { if ($(this).scrollTop() > 300){ $('.float-menu-fixed').removeClass("closed");…
-
1
votes2
answers1903
viewsAdd values with jquery, string to number
I’m trying to add some values but instead of a result of the sum I’m getting the values concatenated, follow the example: var a = 7.5 var b = 1.00 var c = 2.0 var d = a+b+c console.log(d) =…
-
1
votes1
answer192
viewsHow to make two Radiobuttons enable and disable fields
Each radio button enables and disables two fields, two by two. When the first radio is clicked the first two textBox are enabled and the last two are disabled. When you click on the second radio…
-
1
votes1
answer57
viewsForeach does not carry marked fields
Colleagues. I have the form below where I put the size, stock and if the product is to order. If it is by order, just select the product according to the image below: The size and the stock I can…
-
1
votes0
answers34
viewsDownload by javascript does not work on intel xdk
I have a script that works normally in the mobile browser and the computer browser, but when I get an apk it saves a file with another extension instead of the proposal. Follow below my script…
-
1
votes1
answer194
viewsHow to go through the brother elements with jQuery?
What I want to do is to pass the mouse over some star, all the previous ones including it was with a "selected" class, I tried to use siblings along with each and almost got the result where I…
-
1
votes0
answers255
viewsYou doubt about Ubmit and jquery?
I am developing an application in Asp.Net MVC and I am having a problem that I am not able to solve. I have a form with 2 buttons submit, and when I do the submit I want to get the name of the…
-
1
votes2
answers98
viewsWhy doesn’t $.post() return an object?
I have a function more or less like this: $('#btn-load-more').click(function(){ var key = $('#hash').val(), limit = 0, i = 0; setTimeout(function(){ $.post('api', {type: 1, limit: limit, key:…
-
1
votes2
answers228
viewsHow to make a slider hour range with jquery?
How do a slider range of hours from 00:00 to 23:59 with jquery ui? Code: $("#hora-range").slider({ range: true, min: 0000, max: 2359, values: [0000, 2359], slide: function(event, ui) {…