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
votes1
answer77
viewsHow to minimize jquery script
Is there any way to minimize/simplify this script in jquery? $("#men").click(function() { $("#men").addClass('active-men').addClass('selected');…
jqueryasked 7 years, 10 months ago Paulo Sérgio Filho 122 -
-1
votes2
answers218
viewsASP.NET My Javascript is not working
Hello, I’m using Javascript to create a numbering in a Textarea when the Enter key is pressed, an example : 1. Olá 2. Isto é isto 3. Fim This Javascript, however, is not working and I do not know…
-
-1
votes1
answer369
viewsControl return order of Curl
I’m doing a check on proxys putting a list of proxys in the textarea and the code returns to me on screen 1 by 1 below each other whether they work or not. Almost everything is ready, the only…
-
-1
votes1
answer17
viewsVerification return is sent three times
By clicking the button, run this code down It was to generate only one position of the array. In this case it is generated 3 positions, as if there had been 3 tests…
jqueryasked 7 years, 7 months ago gabrielfalieri 1,231 -
-1
votes1
answer49
viewsHiding menu brother
I have a main menu that is on li H3 and the submenus are in li H4. In the structure, they are like brothers. Within the same ul and in the same li. When I click on the menu li H3 I want the menu li…
jqueryasked 7 years, 7 months ago Felipe Viero Goulart 3,693 -
-1
votes1
answer82
viewsAdd fields with Jquery
I am using a Jquery command to dynamically add and remove fields in a form. $(document).ready(function(){ var _espc_clone_index=0; $("#add_espc").click(function(){ _espc_clone_index++;…
-
-1
votes2
answers2024
viewsHow to take data from a form from another page
Hello guys I am with the following doubt I have a web application I want when logging in the home page "index.html" take the 'name' and 'email' and put with jquery in another page with php, ajax and…
-
-1
votes1
answer67
viewsshow total value with more than one select
What I want to do is as I select the quantity of each product it adds and then multiply by the unit value <script language='javascript'> function atualizarValorTotal() {…
-
-1
votes1
answer937
viewsQuery in Json file
I’m making a list of cities and states via JSON. I always create a table in the database to return this information. But today I’m making direct to the file JSON. The layout of the states file:…
-
-1
votes1
answer406
viewsBootstrap-Table Jquery How to edit a column individually in the table load event?
Bootstrap-Table Jquery how to individually edit a column in the table load event? I have tried unsuccessfully using all.bs.table and data-load-Success events.. for(i=0;i < data.length; i++) {…
-
-1
votes2
answers419
viewshow to correctly write php inside javascript
Good afternoon.. I have the following situation: <?php $array_dias_da_semana = array("domingo", "segunda", "terca","quarta","quinta","sexta","sabado"); $zebra = 'domingo'; ?> $(function() {…
-
-1
votes1
answer1083
viewsHow to make a pagination with jquery and ajax?
I have a function that returns all customer registrations. But my question is how can I make a pagination with this code? THE ELEMENTS ARE CREATED DYNAMICALLY. HOW CAN I RESOLVE THIS? function…
-
-1
votes1
answer499
views -
-1
votes1
answer1691
viewsList data in a table using ajax php and bootstrap
I am facing a lot of problems and doubts with ajax! Have the following function that updates the data and list in a table: function atualiza(){ $.ajax({ dataType: 'json', url: 'get_enderecos.php',…
-
-1
votes1
answer740
viewstransform js variable into json object
Have the variable below: [object Object] '0%' : [{ 'margin-left':'-0%'}], '25%' : [{ 'margin-left':'-0%'}], '30%' : [{ 'margin-left':'-100%'}], '50%' : [{ 'margin-left':'-100%'}], '55%' : [{…
-
-1
votes2
answers174
viewsCheckbox show/Hide button for generated lines
I have an array of checkboxes generated and rows of tables that have the same class - class starts at 1 and increases in 1 as more elements are recovered. Explanation Succinct: I need that when I…
-
-1
votes2
answers3624
viewsRemove negative signal from input number
I have the following code in jquery: $.each(data.Dados, function (i, val) { tr += '<tr>'; tr += '<td><div class="product" style="margin-bottom:0;padding-bottom:0;"><div…
-
-1
votes1
answer206
viewsDelete stock directly from Jquery button
How do I make sure that when I click the remove button and activate the removeCampo() function, it is called the page that would delete this directly from the mysql database? I only need the part of…
jqueryasked 7 years, 5 months ago user24136 -
-1
votes1
answer76
viewsValidation of fields and data in table does not work
I want to validate the fields if they are properly filled and check if the sum of the fields is greater than 10 and show the data in the table but none of this is happening. If I leave the fields…
-
-1
votes1
answer69
viewsJquery does not work with <input> loaded with Ajax
The jQuery function works normally but when including the input ajax jQuery does not work for the input that was included! I have the function: $('.alerta').on('input', function() { alert('Olá…
-
-1
votes1
answer176
viewsDiv moving in changing screen
My home site has a start html: <header class="headd"> <div id="divcentral"> <a href="index.html" id="linklogocentral"><img src="img/logo.png" id="logocentral"></a>…
-
-1
votes1
answer574
viewserror in full Legend
I have a complete calendar and when I change the language to Portuguese, it returns me this error. Uncaught Typeerror: Cannot read Property 'defineLocale' of Undefined $('#calendar').fullCalendar({…
-
-1
votes1
answer44
viewsHow to send a Javascript array to php and display them?
I can create my javascript array and store the values inside an array called ArmazenaIds ArmazenaIds = new Array(); $('.checkboxs').each(function () { var estadoDoCheck = $(this).prop('checked');…
-
-1
votes2
answers2780
viewsReturn PHP values via Ajax and display in HTML (separately)
Can you return values from a PHP page via Ajax and display them separately? Ex. I have a PHP page on which I have the return values: <?php echo $a; echo $b; echo $c; ?> Currently I can…
-
-1
votes2
answers232
viewsPull element that has a specific attribute with javascript
I have a page that there are four Divs, all with class . coloritem: <div class="coloritemSelected" style="background: Vermelho;"…
-
-1
votes1
answer101
viewsreuse jquery clones in another div
I have a section of Html which is cloned and completed through jquery, however need to use the same cloned structure in another place keeping and clear the first cloned site, in case it would be two…
-
-1
votes2
answers167
viewsSubmit page after 3 attempts
I have this simple form: <form class="form-horizontal" > <fieldset> <!-- Text input--> <div class="form-group" align="center"> <label class="col-md-4 control-label"…
-
-1
votes1
answer395
viewsChange display according to <select> option
I am mounting a Selection Menu where the user selects a month, when the month is selected, a next selection menu is displayed to choose a day. What I need to do now is: when the user selects the…
-
-1
votes1
answer117
viewsProblem in php json return
I’m having a problem on my return json when I try to access the data it returns to me object object follows my code PHP $cep = $_POST['cep']; $consulta = new Cep(); $cepCliente =…
-
-1
votes1
answer307
viewsDo something after an external script is fully loaded via jQuery append
I have a <script> external being added to the page via jQuery com: $("body").append("<scr"+"ipt src='url_do_script.js'></scr"+"ipt>"); This script adds some elements on the page…
-
-1
votes1
answer610
viewsPick up Input value
I know the title makes it sound like you already have millions of this question, but come on. My case works like this, I have a Datalist so I can autocomplete searching in an array of objects. When…
-
-1
votes1
answer737
viewsAjax does not work on android
I’m making a request ajax that works perfectly on the Desktop, but when I test on android does not work, if anyone can help me jQuery(document).ready(function($){ $("#loginform").on('submit',…
-
-1
votes4
answers64
viewsWhat practice is recommended to check if jQuery’s Ajax function is present and is recognized by the browser, does anyone know?
What practice is recommended to check if jQuery’s Ajax function is present and is recognized by the browser, can anyone say? // forma 1 if (!$.ajax) { alert ('Status xhr: não suporta Ajax'); return…
-
-1
votes1
answer852
viewsRemove empty spaces in JS arrays
I would like to know how to eliminate the gaps that are in a vector. The situation is as follows: I need to read all the text tags of an HTML page and store them in an array so that I can work them…
-
-1
votes1
answer307
viewsAjax with Jquery does not work
I need to make the Ajax within the Jquery. The Jquery does the validation correctly, but when I click the button to send the form, it doesn’t work, hangs on the loader, where he would have to…
-
-1
votes1
answer1948
viewsGet input date value
I have two input date created, and would like to take the date of the two by a button. <div class='col-md-5 col-lg-4'> <div class="form-group"> <span>Inicio</span> <div…
-
-1
votes3
answers485
viewsSelect a div without it having a class or an id?
I’d like to do the following <div id="teste"> <div>Teste 1</div> <div>Teste 2</div> <---- Quero selecionar esta <div>Teste 3</div> </div> How could…
jqueryasked 7 years, 1 month ago I_like_trains 1,430 -
-1
votes3
answers110
viewsHow to access img of a JQUERY figure?
I want to get the $(figure img).attr('src'); current, but the editor is saying that this is wrong and will not work. how to make it work? HTML CODE: <figure class="effect-oscar wowload fadeInUp"…
jqueryasked 7 years, 1 month ago Deny Programador PHP 53 -
-1
votes1
answer32
viewsControl of Radios Input
Hello, I have the following code below where I wanted to control the radios. I want there to be an "event" triggered when each finishes sweeping the entire group of radios 1 whose name is "group1".…
-
-1
votes2
answers546
viewsMask in dynamically generated fields
I need to add a mask with the jquery.Mask plugin in dynamically generated fields, $(document).ready(function($){ $('.mascara').mask('00000000'); }); for(var i = 0; i < data.d.length; i++) { var…
-
-1
votes1
answer539
viewsSet different CSS size for each browser
I have a little problem with my code, in case I have a banner that in Chrome and Opera, it appears in the exact size of the entire screen, but in Edge and Mozilla it appears broken not occupying…
-
-1
votes1
answer86
viewsReturn a table between an initial and final date period, php + json
I’m trying to return a Dashboard table of reports between a specific date on, but when I click on search it just returns me Error: Syntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of…
-
-1
votes1
answer585
viewsCannot set Property 'innerHTML' of null "ERROR"
Hello, I’m trying to open an external site through a page I created by clicking with a button, but I can not reference the document I created, follow the code below, tried several times and could…
-
-1
votes1
answer182
viewsHow to insert values in the chart gauge
I am with widget Gauger (type Velocimetro) and would like to enter my own value For example, the maximum value would be 200 and minimum 0 The set value would be 175 How do I insert values into the…
-
-1
votes1
answer1083
viewsError: java: Illegal char<:>
am experiencing this error Error:java: Illegal char <:> at index 4: http: api.jquery.com I know what error is in the sentence, but I can’t find it anywhere to fix it. I’ve searched line by…
-
-1
votes1
answer48
viewsAnimations do not appear
Good people, I’m trying to do some scrolling animations, but I don’t know why but I don’t see any animation, the sections don’t Reveal As I go scrolling... Html: I added the js-wp-1, js-wp-3,…
-
-1
votes2
answers1168
viewsAppear two decimal places
In this code I have, when value reaches 200.00... it shows 200, when it has decimal places, it shows decimal places... 200.55 = 200.55 However, I need him to show both decimals even if it’s "10.00",…
-
-1
votes1
answer58
viewsHelp me to understand
Use this script to send information to the Jsonplaceholder api. I would like to understand why the following snippets: Why should I serialize before using stringify? var dados = $(this).serialize();…
-
-1
votes1
answer81
viewsRelease Field after date
Hello I need a javascript code in which I will have two fields one with the date and a Description that will be unlocked according to the given date and block the previous Example From the day…
-
-1
votes5
answers1890
viewsReceive and read array coming by Ajax
I have a requisition ajax thus $.ajax({ type: "POST", data: "valor="+val, url: "ajax/mostra_imagens.php", success: function(e){ console.log(e); } }); On the page mostra_imagens.php he creates a…