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
answer46
viewsJquery, sum up table
I am not managing to generate a general total of my table, in each row I have the quantity and price. I need to generate the total value. The current logic is reading all the rows of the table and…
-
0
votes4
answers768
viewsAdd mask from a select
Good morning, I’m trying to add a mask to Cpf from a select, but I’m not getting it. HTML <select class="form-control" id="select" style="width:100px;" title="Escolha..." name="select">…
-
0
votes1
answer64
viewsSend Post with form data through Jquery
I want to create a function that moves all selected records from one table to another. The user selects multiple records in a list, clicks the move button, at that point the system opens the form…
-
0
votes0
answers29
viewsEdit does not work on jQuery
I have the following function: // ações para modificar (clique) $(".editar").click(function(){ var id = $(this).data("id"); $.ajax ({ url: 'area/get_area/'+id, type: 'GET', success:…
jqueryasked 7 years, 5 months ago Sr. André Baill 6,946 -
0
votes1
answer281
viewsHow to Write and Update HTML File with Jquery?
So I’m taking the HTML content from an external site and rendering in my hybrid application. So far so good. I have the following code so far: $.ajax({ url: '{{SuaUrlAqui}}', headers:…
-
0
votes0
answers72
viewsautocomplete does not work after calling ajax
I have a zip code field with autocomplete that works perfectly when I type something. However this field is also filled after an ajax call that fills the zip code automatically, only when receiving…
-
0
votes2
answers712
viewsUpdate Cities Combo with jQuery when editing
I have an error in the update of select of cities, no create works correctly, I select the state and cities are updated. On Edit I can’t update cities according to the selected state. I’ve tried a…
-
0
votes2
answers3595
viewsSend value from a Javascript variable to PHP
I have searched a lot and done many tests but I’m not able to send the value of a Javascript variable to a PHP variable. My case is as follows: I have a real estate portal and I would like to take…
-
0
votes1
answer40
viewsGenerate sql from a js return
Good morning, stack overflow. It’s been a while since I’ve been hammering to look for a solution to a problem that came up, that nothing comes to mind. I have a form, where this form will make a…
-
0
votes1
answer31
viewsHorizontal walking form does not work
I have a form that initially is display None and negative margin, I wanted when the button was clicked to give the impression that the div was dragged like this site, the side menu,…
-
0
votes1
answer99
viewsHow to display content from another page dynamically
I would like to be able to display various contents (from other pages) on a single page for each click on a link or button that the user gives. I know one of the solutions would be to use AJAX, but…
-
0
votes1
answer150
viewsError 405 - Cross Domain Request
Guys, I’m making a request for my page on github (tiagosilveiaa.gihub.io) for my test server, just to run the script of the same form, but I was presented a message that the protocols were different…
-
0
votes3
answers186
viewsDoubt validate . click() outside of Function() jQuery
I need to validate if the button with class .pop-yes was clicked, but I need to validate this outside the event .click() so that the code line $(this).parent [...] be executed. The way it is here,…
-
0
votes3
answers759
viewsHow can I make a div hide on the side and when clicked appear on the screen?
How can I make div hide on the side of the screen? Note the side menu of this site http://preview.imithemes.com/? Theme=Solicitor-WP I tried it a way but didn’t someone know a way? my None display…
-
0
votes2
answers260
viewsCall in API does not work
I have the following code: // Script Jquery <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="…
-
0
votes2
answers159
viewsOpen document from the same directory in new window after Submit
In my directory I have the following pages in HTML: public_html // Index.html // proof_protocol.html // protocolo_menu.html On the "protocolo_menu" page we set up a form. The goal is that after…
-
0
votes0
answers47
viewsMake modal appear on screen after creating
$('a[rel=modal]').click( function(){ var id = $(this).attr('href'); var a1 = []; for (var i = 0; i < id.length; i++) { a1[i] = (id[i+1]); } var a2 = a1.join(''); var idTime = parseInt(a2);…
-
0
votes1
answer150
viewsProblem with show/Hide
I have a div that by default this hidden, I have a simple jquery that when I click on the button opens the div, only I have several buttons with the same hidden div. What happens is if I open a div…
jqueryasked 7 years, 5 months ago César Sousa 2,025 -
0
votes1
answer500
viewseffect on input with jQuery
Well I set up a system and very precise input with android, I used CSS and jQuery. But I wanted to put an accurate effect with the Google lite material. Follow the example link:…
-
0
votes1
answer55
viewsHow to make that jquery foreach does not repeat the data when I open model window?
I have a window modal that when I open it carries me the data I need to have through a foreach jquery. Just close to modal and open again, all the data that comes from the foreach. How can I avoid…
jqueryasked 7 years, 5 months ago César Sousa 2,025 -
0
votes1
answer128
viewsView events for a given day with jquery.datapicker
This calendar of events with datepicker displays all events of the current month, so how to display events for the day when clicking on a given day? For example, click on April 25th, you receive all…
-
0
votes0
answers53
viewsLimiting event execution and listening to events
I need to limit the number of times a button is clicked, below the code of it $(".add-produtos").on("click", function(){ for(var z = 0; z < 17; z++) { var testar = produtoObj(i++); //produtoObj é…
-
0
votes1
answer88
viewsExchange vh for px
I’m having the following problem: I have a page that has several slides in HTML even. All these slides have their size set by vh instead of pixel. The problem is that when I access with mobile, the…
-
0
votes1
answer373
viewsJson.parse does not convert to array
Hello, I am a complete amateur in php and javascript and after a month of fighting with two languages I had never touched got here. I am trying to pass a JSON from a request back to array in my…
-
0
votes2
answers139
viewsForm Validation
Well, I have a form that is validated if the inputs are empty, until then ok, does the validation in the if of all inputs correctly, but with the inputs completed, does not send in Else. Where I…
-
0
votes1
answer925
viewsForce a click on a tag a with Jquery
I want when mine <li> be clicked, it activates a click on the tag <a> that’s inside of him. <li class="tab card-panel z-depth-1 ativado historia hoverable"> <a href="#historia"…
-
0
votes1
answer260
viewsSave form data to cookie and popular form with this data after page re-load
I have a page with filters, being 4 selects, an input search, 2 input date and a Submit, I need to keep the data selected after page Reload. In other words, I put the data to filter and after…
-
0
votes3
answers1157
viewsGet value from dynamically created fields
I have a page where the user can increase the amount of fields that will be needed, to do this I am using jQuery with the following code: episodio = 2; $(".addEpisodeField").click(function() {…
-
0
votes1
answer299
viewsUI autocomplete with PHP does not accept accents
Colleagues. I am using the UI autocomplete for an application, it works fine until the word has accents. The database is set to: The code I’m using is: <input type="text" class="form-control"…
-
0
votes1
answer42
viewsJquery data update
I have a pertinent question regarding the dynamic update: I have an order system. The problem is that the values are not being summed correctly in the click event. In the first picture I just click…
-
0
votes1
answer1390
viewsMouse image display text and vanish image (vice versa)
I’m trying to make this effect with that when passing the mouse over the image, it disappears and displays the text, when taking the mouse, add the text and display the image. I tried as follows,…
-
0
votes1
answer278
viewsMake content appear according to button clicked in the side menu
I have a side menu listed with several lis and the contents of each menu item listed beside. I would like that when the user opens the page the first menu item is already visible, and if he clicks…
-
0
votes1
answer368
viewsLeave softer effect
How I make this effect softer? $j(window).scroll(function () { console.log($j(document).scrollTop()); if ($j(document).scrollTop() >= 300) { $j('.logo img').attr('src',…
-
0
votes2
answers2987
viewsLoad js function automatically and for various Ivs
My problem is this. I have two or more Ivs on my page and I want to automatically call a function for them when loading the page in question. And at the same time that I call these functions I want…
-
0
votes1
answer396
viewsJquery function to show and hide text?
Basically when you click The Art the phrases that have the id= shows should appear and when you click again disappear <!DOCTYPE html> <html> <head> <title></title>…
-
0
votes1
answer77
viewsReturn results in different inputs
Guys, here’s my code. My query is returning the results I want, but it’s only returning in an input. How do I return the name_id in one input and Location in another? <?php $nome =…
-
0
votes1
answer296
viewsCreate event click to dynamic button
I’m adding lines dynamically in a table, but I can’t make the dynamically created button work. Below is the excerpt where I create an ajax request to add a row to my table:…
-
0
votes1
answer62
viewsHow do I show a php error in jQuery?
I have one (.html), one (.php) and my jQuery. In my jQuery( I am sending the information to (.php) do CRUD and etc. Transactions are occurring smoothly, but are not displaying error messages of the…
-
0
votes1
answer114
viewsSimulate click on a compiled template
I am facing problems when assigning a 'click' event in an external template previously compiled, follow the code... Directive angular.module('testeFuncoes').directive('fechaMenu',…
-
0
votes2
answers1818
viewsHow to make a pop up appear after pressing a button using Jquery UI
I made a form with Jquery accordion and at the end a submit button. After pressing the button should appear a pop up message, but is giving error. My pop up appears when the page starts and this…
-
0
votes2
answers704
viewsPass GET method by Jquery
I have the following situation, when I test is passing the parameter with var_dump, does not return. What I’m trying to do is not load a new page but let it all happen on Divs. HTML: <td…
-
0
votes1
answer3388
viewsAssign event click to button added to DOM with jQuery
By clicking a button I make a string appear, but this string has a button (let’s call it a button2), but button2 does not work. Why? I click this button: $("#button1").click(function(){…
-
0
votes1
answer100
viewsHow to solve this problem
I need to make this code work the way that if it contains the word in the url I switch to the default option as follows: $('#servico').val(Sispostag.getParameterValue('servico')); var url =…
-
0
votes2
answers134
viewsRepetition of JQUERY items
Good afternoon, everyone, There was a problem, I had a question about summation system with JQUERY, but I would like you to analyze what is wrong in my code because it error (Nan) with multiple text…
-
0
votes3
answers79
viewsProblem to attack son and doubt in this use
I’m having trouble understanding the use of this. I have the following structure: <div id="a" class="clsa"> bbb </div> <div id="b" class="clsb"> <span id="bb" clsbb> Conteudo…
-
0
votes1
answer140
viewsSearch with Jquery does not work in Firefox
I created a code to search for information in a table and the code just doesn’t work in Firefox The error that appears in firefox is: Error: Syntax error, unrecognized Expression: Unsupported…
-
0
votes1
answer2505
viewsTake data from a textarea and fill HTML table
Good afternoon, I’m racking my brain to fix this, someone could help? I have a textarea in which the user will paste the data from an excel spreadsheet, the data enter as follows: 10 | produto1 | 1…
-
0
votes2
answers740
viewsProblems with Nan Jquery
good evening, I am trying to generate the result by multiplying the values of these textbox*span values, however it accuses that the value is not a number, I would like to understand which…
-
0
votes1
answer85
viewsJquery effect does not work as expected
I created a div that when clicking with the mouse on top, its background is filled by a certain color. There are several div’s that act this way, aligned side by side. The id’s of these divs are…
-
0
votes1
answer307
viewsOnly open prompt if you click the parent element and not the child element
I have a div and inside it has several other elements (img, span, etc.). What I need to do is only when I click on div father the prompt open javascript, if click another element (child, those…