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
votes2
answers97
viewsSlidetoggle in jQuery does not work as it should!
I’m studying jQuery and I’m using the slideToggle and as the documentation says, it should slide to its current opposite position. I don’t quite understand it but it just slides down.…
jqueryasked 6 years, 5 months ago Wallace Corrêa 61 -
0
votes2
answers397
viewsSum values of a column td
I would like to know how to calculate the values of a column and play in a field. They are automatically loaded This is the table html. I want to add the column values valuables and play on the…
-
0
votes0
answers145
viewsNot stopping Ubmit with e.preventDefault();
I have this function below, but it’s not stopping at e.preventDefault();, it performs and performs the submit on the page. Go on like I’m doing: $('#ClienteEditar').submit(function (e) {…
-
0
votes1
answer53
viewsForeach jquery concatenate in table
I have a AJAX that in the success brings a response: $(response).each(function(i) { alert(response[i]); $('#tbody').html( "<tr>" + "<td>" + response[i].id + "</td>" + "<td>"…
-
0
votes1
answer51
viewsCommunication between PHP files with Ajax
Good morning, you guys. I’m starting with PHP, and I’m trying to do some practical tests. I created an input text and when pressing the "ENTER" key is called an ajax doing post of this data and…
-
0
votes1
answer88
viewsJquery, exchanging images by clicking
Guys I have code here and when I click on the image it changes the text , when you click on the bottom, it changes the text but I need that when you click on the image,that activates the function of…
-
0
votes1
answer39
viewsclick on a table field to load the edit form with the selected id
I have a user table and would like when clicking the edit button to load the edit form without refreshing the page with the id selected using jquery would be possible? below follows the code:…
-
0
votes0
answers99
viewsUpdate comments without loading page
For each post, I have a feedback form. What I need to do is pass the form ID to the script, in order to handle the comment in the respective POST. But to pass the value to the div process, I would…
-
0
votes0
answers59
viewsChanging $.getJson to $.ajax
That code works perfectly: $(function(){ $('#id_categoria').change(function(){ if( $(this).val() ) { $('#bairros').hide(); $('.carregando').show();…
-
0
votes1
answer58
viewsRadio input values stay inside an array
I do not know if I was clear in my question, but I have the following form: When another field is added and when it is selected for example Children in lap? in the second field, it unchecks the…
jqueryasked 6 years, 5 months ago user24136 -
0
votes1
answer128
viewsGet the value of radio with javascript
I’m trying to get the value of input radio, but if I do: document.querySelector('input[name="group1"]:checked').value; He returns to me "ON". Does anyone know what it might be? I was hoping he’d get…
-
0
votes3
answers176
viewsKeywords with Jquery
I’d like to do something like: For every word the user types, it looks like the image above. The closest I could get was to know the amount of words he typed, follow code below: <script…
-
0
votes0
answers41
viewsCarousel does not work on android
wanted to know what’s wrong with that Carousel that on the desktop works perfectly, and in any other mobile device does not work HTML <div class="box"> <h1> <div class="b-slide">…
-
0
votes0
answers11
viewsEvent click Owl-item just add
Good afternoon guys, I have several owlcarousel2 while performing some test I noticed the following item or various items that are added to Carousel using the add.owl.carousel are not dectados in…
-
0
votes2
answers454
viewsSubmit being called twice
I have a form where I need to intercept the event submit, cancel it and via Ajax, perform the required request. However, even using the preventDefault(); and return false; the submit is being…
-
0
votes0
answers166
viewsSort widgets between drag and drop Ivs
Good afternoon. I’m doing a personal project and in it I have several Divs with Divs inside and I need to be able to exchange these elements with each other, I can put an element that is in col-1…
-
0
votes2
answers78
viewsGenerate HTML components with PHP and these assign javascript characteristics
I created a form that has a panel and this panel has a input date with a jquery datepicker. If you have data entered in the database, my PHP creates more lines in this panel (through the ajax) with…
-
0
votes1
answer133
viewsKeep data when click back
I have a page that contains a dynamic table where the user adds new lines and then clicks on a button to calculate the order value where I direct it to a new page showing the total order value and…
-
0
votes1
answer120
viewsLaravel + AJAX Jquery
Good night, I’m learning Laravel and need to upgrade a div every 10 seconds. I have a route that when called makes a query to the database. This route returns the Dashboard view. Route:…
-
0
votes1
answer34
viewsGo adding for values in the array
I created an array: var tagListArray = []; for(i = 0; i<resultados.item(i); i++){ tagListArray = ["valor1", "valor2"]; } console.log(tagListArray); That one resultados.item(i) me returns x…
-
0
votes1
answer31
viewsDemo only works on Jsfiddle
My problem can be a very simple thing, is that I’m new to script programming and I’m getting a lot of hits! I cannot make this demo work in my.html file: Jsfidde demo link:…
-
0
votes2
answers105
viewsHow do I get my jQuery to scroll through this table correctly?
I created a script to scroll through the table and return me a console.log of the content in it, but in the first few lines it doesn’t take the name of the Course, only the prices. I saw that in the…
-
0
votes1
answer529
viewsHow to call Angular 4 method in HTML code generated by jQuery?
I’m using a template I bought made in Angular, but not everything in Angular has a lot in jQuery. I’m using jQuery’s Datatable (because it’s already native to the template, it has all the css ready…
-
0
votes1
answer55
viewsError while running js
I have the js code (below) to change the name of a link, but the script does not work. And when I do on the console works normally. Can anyone tell me what it would be? The script is at the end of…
-
0
votes1
answer144
viewsTake Select Option and multi-line Checkbox values
I need to make a list of employees who are linked to cost centers and I need to tell you if this employee is leadership within this cost center. I tried to mount a select and an added checkbox by…
-
0
votes1
answer177
viewsEnable select by selecting with jQuery
I conducted a cursory research on enabling a select when choosing an option in another select, but I couldn’t find anything that applied. $(document).ready(function() {…
-
0
votes0
answers684
viewsHow to remove an index from localStorage
I need to make a manipulation of localStorage and I don’t know how to remove an item from an index. I’m very beginner in the subject and I don’t know how to pass this information to the button.…
-
0
votes0
answers82
viewsUnauthorized Text to Speech Watson IBM
I have a problem trying to make a request through the text-to-Speech api, when trying to make the request it gives the following error: { "code": 401, "error": "Unauthorized" } My JS code $(function…
-
0
votes0
answers218
viewsCalculation for quantity of JAVASCRIPT photovoltaic panels (JQUERY)
I did a calculation test based on the formula of this video: https://www.youtube.com/watch?v=NdFHC3gv63U I used the following algorithm: function simular() { var radiacao = 5.6; var tarifa = 0.71;…
-
0
votes0
answers41
viewsA* - Jquery + Javascript
I’m taking a test of pathfinding in jquery with JS, and gave a strong empacada. I searched several places, but I’m not able to reason how to start reading the "neighbors" to make a line between the…
-
0
votes1
answer65
viewsAJAX completes the URL from where it was called
I’m starting to use AJAX now, so I don’t know if this is what’s going on with him. I made this code to do a CPF search in the database $('#btn_buscar_cpf_responsavel').on('click', function(){ var…
-
0
votes1
answer45
viewsJquery function does not access variables from the form
I need to calculate the value of a service of a petshop project, where it is necessary to inform the data: id_porte (small, medium, large), id_categoria_animal (dog, cat), and what the service…
-
0
votes1
answer92
viewsAutomatically mark date checkbox
I have 3 checkbox and 2 inputs. The second checkbox is parent() of 1 input type number and the third checkbox is parent() of 1 input type number: $calendar .= "<td bgcolor='$color'…
-
0
votes0
answers31
viewsComponent switchery does not work on a Partialview - Asp.Net MVC
I am having problems with data-plugin switchery (Remark bootstrap component) that does not want to work in partialviews. The interesting thing is that if it stays inside a normal view, it works…
-
0
votes1
answer78
viewsHow to load an HTML file into a DIV in zend-framework3
I am working on an email marketing tool and need to upload an HTML template into a DIV in the view. I am using zend-framework3. I tried using the . load() function, but it’s giving error 500. Can…
-
0
votes1
answer135
viewsHow to prevent a link from working on a child element? (jQuery)
Imagine the following code below: <a id="link" href="/nova_pagina.php"> <div id="abrir-nova-pagina" >Linha_1</div> <div id="nao-abrir-nova-pagina" >Linha_2</div>…
-
0
votes0
answers119
viewsProblems using the camera on mobile or tablet
Good afternoon. I made a code that takes photo using webcam or camera phone on desktop and android works and on iphone the screen gets black. follows my Cod html <div class="demo-container">…
-
0
votes1
answer78
viewsNull object with jquery ajax MVC3
I know I must be forgetting something. I am making a request ajax jquery to send a message via contact form, however the object is coming null on controller. I tried doing with the JSON.stringfy and…
-
0
votes0
answers34
viewsMulti-form validation Jquery
I set up a form, where I have a SELECT with three options and when selecting them, the jquery displays different form options, with their respective contents (they are three Divs with class "Hide"…
-
0
votes2
answers2517
viewsPass Data Via Ajax to the ASP.NET CORE C#MVC Controller
Hello, I’m beginner in programming, and I’m trying to pass data via Ajax to my Controller, to be honest I’m just studying so I don’t even know for sure understand the advantages of Jquery for…
-
0
votes0
answers1232
viewsUncaught Typeerror: Cannot read Property 'length' of null
I’m making the selection of employees, using the Select2. Use of these inputs: <div class="form-group"> <div class="row"> <div class="col-md-12"> <label>Destino</label>…
jqueryasked 6 years, 5 months ago Rogério Pancini 119 -
0
votes0
answers36
viewsDoubt in this JS code where there should be a link to a json
$(function() { $("#homepage").addClass("visible") }); //aqui tem uma rota de json encode https://vizer.gratis/wp-json/moble var siteUrl = "https://vizer.gratis/wp-json/moble";…
-
0
votes1
answer272
viewsReturn list to ajax
I have this function to load some data, but the need to load a list and include in a table the function was thus: [HttpPost] public ActionResult CarregaProduto(string id) { try { var item =…
-
0
votes1
answer46
viewsAutomatically save to bank after changing select value
I am using Datatable to show a table to the user with some information, in one of the columns (Status) is displayed a select with options. I want it to be saved in the bank automatically when…
-
0
votes1
answer117
viewsPut description in image with Hover
I’d like to do this Hover effect image of this site, but I’m not getting $('.img').on('mouseover', function(e) { $(this).css({ 'opacity': '0.5' }); $('.hiddenDiv').css({ 'display': 'block' }); });…
-
0
votes0
answers77
viewsHow to disable the click event on "Date Range Picker" days?
I’m trying to stop the "click" event on each day of the Daterangepicker, I’m just trying to stop users from changing the period. I created a thumb drive in Codepen, follow link:…
-
0
votes1
answer70
viewsJquery Mask only alphabetical with strange behavior
I am trying to add a mask in a field to accept only alphabetic characters. Apparently I managed to find a solution. Code $(function () { $("#name").keypress( function(key) { if((key.charCode < 97…
-
0
votes0
answers128
viewsUpload images when you do Crop with PHP
The Crop in the image works, generating the cropped image at the end. How can I upload the cropped image (Crop) with PHP? PHP () <?php // memory limit (nem todo server aceita)…
-
0
votes1
answer42
viewsGet parameter in . equal click pass onClick - jQuery
I have the following iterator that has delete buttons that are dynamically loaded: <s:iterator value="form.listaCooperativa" id="lista" status="lista_status"> <s:if test="#lista_status.odd…
-
0
votes1
answer308
viewsReal-time search with jQuery
I have the following code to do a real-time search with jQuery, searching for values within a table: $(document).ready(function () { $(".nada").hide(); var $rows = $('.linhas');…