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
answer400
viewsClick and act, click again and return to position/ Jquery
I made a button to open a configuration screen, when I click open the screen, and the button changes from "Setup" for "Come back", until then beauty, but I would like that when it clicked again,…
-
0
votes2
answers198
viewsProblem with AJAX Jquery
Code in index.php <!DOCTYPE html> <html lang="pt-br"> <head> <title></title> <script type="text/javascript" src="jquery-2.2.3.min.js"></script>…
-
0
votes0
answers93
viewsJquery Ajax - Problems when rendering graphics using jquery request
I am developing a web application that aims to generate monthly reports of some information coming from the mobile application. As I have little experience with Jquery I am having difficulty loading…
-
0
votes2
answers198
viewsJquery removes all the least selected Divs and the ones from the other menu
This code removes all the least selected Ivs, but also the ones from the motherboard menu what I was trying to do was to make the bottom ones independent of the top ones. I’m sorry to show you the…
-
0
votes2
answers47
viewsHow to add values from several strings to another without this string losing its value?
I’m going to add values to a variable inside a for as follows: function gerarcods(){ var alfa = $("#nalfa").val(); var qtdcods = $("#nqtdcods").val(); codigos = ""; for(i = 1; i<= qtdcods; i++){…
-
0
votes1
answer133
viewsAjax request back Undefined
I am studying a little Ajax and testing your requisitions. My doubt is on account of the return, he is returning Undefined. That is the function: function recarregar() { var jsonData = $.ajax({ url:…
-
0
votes2
answers40
viewsAuto calculation Jquery does not work
I have this budget form. I’m taking advantage of the auto calculation of another form, which works perfectly. But I threw it at this other one and it doesn’t do the auto calculus at all. I checked…
jqueryasked 6 years, 7 months ago Rogério Pancini 397 -
0
votes2
answers761
viewsCheck the existence of a file
I need to verify the existence of an image coming in one of the positions of a JSON received via AJAX. Did you understand? Is there any function equivalent to file_exists() PHP in Javascript or…
-
0
votes5
answers273
viewsTaking html class with PHP variable in javascript
I’m trying to get the value of a select by jquery from the class, but this class has part of the value as php variable. Currently my code is like this: echo ' <select name="contarecebvenda"…
-
0
votes1
answer101
viewsExtract data in Jquery
I am having a problem with Ajax... I am not able to extract the data. They are returned, however, at the time of printing, nothing appears. Follows codes: Model: function livros() {…
-
0
votes3
answers47
viewsSecond button replacing contents of the first
With this code below when I click the button mat it brings me the data in a table. I would like to click on the button sp replace the contents of the table with another. Code: <button id="mat"…
-
0
votes2
answers79
viewsProblems making ajax call with checkbox
I have several checkbox that will make an ajax call, but only the first checkbox You make the call. Any solution in the Ids for this list to make the same call ajax? Script: <script>…
-
0
votes3
answers1607
viewsTake the width of a text?
We usually take the width width of a div or any other tag within the page. How can one pick up the width of a plain text? For example: Um texto How do I know the width this text occupies on the…
-
0
votes2
answers2067
viewsMaskmoney c/ Jquery or Javascript
How to create a mask for Real R$ values? I tried to use http://plentz.github.io/jquery-maskmoney/ but I was unsuccessful. I need a mask that introduces me to something like this: R$ 0,01 R$ 0,10 R$…
-
0
votes1
answer200
viewsButtons positioned at the bottom of the page go up when the mobile keyboard appears
I am developing a responsive page that has at the beginning a search field and at the footer two buttons with absolute positioning, on mobile devices after clicking the input the keyboard is…
-
0
votes1
answer53
viewsError while performing Javascript summation
I have a calculus script I adapted from another page. There, all right, but this, even checking the same ids and the like, does not work. I took the essentials from the screen, to demonstrate what…
-
0
votes1
answer108
viewsJquery Cycle 2 Slide displaying below alignment
I’m using the plugin Cycle 2 of JQuery. Here is the link: http://www.dinamicaimoveis.com.br/novo/ I have two divs. One floating to the left and one to the right. In one I have a text and an image.…
-
0
votes0
answers262
viewsHow to resize images before upload
Good afternoon guys, my application already uploads images using <input type="file">, but only images that are less than 2mb. I am storing the target.result in the bank and returning in a…
-
0
votes0
answers31
viewsHow to load ADS after all remaining content
I’m trying to make the Revive AD Server of my site (a forum on the Vbulletin platform) load only after all the content, this is because it is an external server, which ends up slowing down the site…
-
0
votes2
answers78
viewsVariable does not go to PHP with Ajax
I have this code that makes the request with Ajax for a PHP file. The problem is that it is only taking the value of input type="file", the other fields are not being passed to PHP. I’m doing so to…
-
0
votes1
answer40
viewsGo to "home" page
How can I do through a javascript function, which is enabled the command "Home", ie the page make a jump to the top of it? Example: A button that is clicked and is at the bottom of the page,…
-
0
votes1
answer269
viewsalt and two letter shortcut
good afternoon I got that code right here $(document).on('keydown', function(e) { console.log(e.which); // Retorna o número código da tecla console.log(e.altKey); // Se o alt foi Pressionado retorna…
-
0
votes1
answer119
viewsajax returning white
I once again here. Come on. Well, here’s my problem: I am passing values to my method in php via ajax, however they are not returning me anything, I did some tests and it is catching on the…
-
0
votes0
answers912
viewsClear memory variable data
I have a function that through click detection makes a post to Act.php Act calls a php function that inserts comments. Everything works, massssssssssssss, as there is no refresh on the page and the…
-
0
votes2
answers726
views -
0
votes1
answer284
viewsHow to hide div with cookies after a second user visit
Hello friends already searched a lot and did not find how to do I thank for the help since now. I want to hide a div with cookies after a second user visit Follows my code:…
-
0
votes2
answers318
viewsChange background-position with Javascript
Well, first of all I’m sorry, but this question is a little difficult to express. What I want to know is if there is any javascript code that makes the background-position move very fast, until very…
-
0
votes0
answers120
viewsInsert an array with codeIgniter and ajax
Hello I am trying to insert an array, but in this case, you can insert multiple lines in db. How do I pass the data to codeIgniter: var productsData = []; $(".productRow").each(function(i){ var…
-
0
votes0
answers80
viewsIdentify and list which users viewed an Laravel post
Good afternoon, for study purposes, I am creating a communication system, where users register communiqués on a timeline, but I came across the following question, How would I show which users…
-
0
votes1
answer680
viewsJquery UI Autocomplete Customization
Hello! I put the jquery ui autocomplete on my system, it’s working as it should, but I wanted to edit its look. For example, put a background color in the suggestions that appear and do not allow…
-
0
votes2
answers40
viewsSend array to PHP via Ajax
I want to send a vector coming from javascript to PHP. I have the following code but it is not working. How to do? info = []; info[0] = 'thiago'; info[1] = 'carlos'; alert(info[0]); $.ajax({ type:…
-
0
votes2
answers939
viewsExternal Ajax URL Request
I am with following problem,I implemented the code,to get information from RSS blog,however I am not able to access url criticizing error 401,when I place local file works normally. var ajax = new…
-
0
votes1
answer32
viewsHow to save variables generated with Jquery in php?
I have a button that adds inputs onclick and I would like to be able to save or effect the desired code in some for for entry into the database. This is the code onclick…
-
0
votes1
answer1656
viewsDownload
I have a project that uses Gophish for internal campaigns. This tool has an HTML editor that generates the page in question. The problem I need to be allocated on this page an Automatic Download,…
-
0
votes2
answers205
viewsMedia Queries for Java Script - What is the error in this syntax?
This is the first time I try to apply a rule of media queries in java script and, as a beginner, I believe something in this syntax is wrong, since the only function that is working is the second…
-
0
votes1
answer115
viewsCreating unique browser actions(Jquery)
Good afternoon! I wonder if it is possible to create a Function with Jquery exclusive for a specific browser For example: $(document).ready(function(e) { $("#imagens a").click(function(e) { var id =…
-
0
votes1
answer220
viewsFilling a Listbox with data from checkboxes
I am having problems filling my Listbox, I can fill the Listbox with the values of the checkboxes of the corresponding Labels. I’m running out of ideas how I’m gonna do this. The checkbox list is…
-
0
votes0
answers187
viewsPHP Session Control / jQuery
I’m creating a system where I have user groups with specific permissions. I need to do a session control at the time of login, storing the user permissions in session variables so that they are…
-
0
votes1
answer365
viewsChart.js Different color for Negative/Positive Chart bars
Chart js.: Trying to put one color for positive values and another color for negative values on the chart. Works well if there is at least one negative value: Behold…
-
0
votes0
answers39
viewsHow to unescape with jquery?
I’m putting together a page with ajax, she has a registration modal I have a form that is in the file novo.php and I need to do his include inside the modal. The modal is created the moment the user…
-
0
votes1
answer40
viewsBug transition Jquery slides
I’m venturing into the front-end and I’m having a problem with multiple clicks in a row on the side arrows of the "slide" that I created, where if the user waits a second or so to move on to the…
-
0
votes0
answers115
viewsDate mask for android
I’m creating a mask in a function in jQuery, but Android does not work. On PC and iOS works normally. I have made several attempts of what were indicated in the forums, but I was not successful. The…
-
0
votes1
answer197
viewsHow to make Reload page take 10 seconds
I have this code here, but it is always doing the page re-load. script type="text/javascript"> function autoRefreshPage() { window.location = window.location.href;…
-
0
votes1
answer105
viewsEnable button according to page
I have a set of Ivs below the header (cardiac, abdominal, facial...), each with its respective link, using the same names. I need that when I select one of the buttons, it becomes "active" even with…
-
0
votes1
answer81
viewsHow to make "$(window). scroll" run only once?
When performing the scroll, the function performs normally, but keeps repeating every time I continue with the mouse scroll. I’d like to know how to make it run only once. I’m doing like this:…
-
0
votes1
answer20
viewsJavascript Collapse Problem
I have a list with Collapse to play different contents in the same location, I just need that when I enter the page the first item of the list is selected, I have a script that makes the function of…
-
0
votes1
answer102
viewsSend form data after image preview
I know there are several topics about this in the forum, but none of them answered my question, I have the following code that makes a preview of the selected image and some more form fields for the…
-
0
votes1
answer37
viewsDynamic attribute name in Post Jquery
How can I use the type variable data as the title/name of the attribute that will be passed in POST? The type is dynamic because it is actually the name of the column in the database.…
-
0
votes2
answers544
viewsHow to add options to a drop-down list using jQuery?
I have a role in jQuery who receives a array from PHP, through the $.post. The array comes like this: array( '0' => array( 'ID' => '1', 'NOME' => 'João' ), '1' => array( 'ID' => '2',…
-
0
votes0
answers45
viewsproblem in ajaxSucess
Hello, I’m having a hard time executing a script after an ajax call. What I’ve done so far? Well, I will explain: I have a button with 2 actions, however, I need one action to occur before the…