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
-
6
votes4
answers11464
viewsIncrease image when user click on JS
I’d like some help for a problem I’m having: I’m doing something similar to a gallery, and when the user clicks on the image it has to open in large size, not the entire screen, but covering much of…
-
6
votes2
answers1168
viewsUnable to call the same variable outside of Function
I’m having trouble calling my variable pt1 outside the function(data) and within the function getImageItem. Whereas the function(data) is inside the function getImageItem. function getImageItem() {…
-
6
votes3
answers1293
viewsProblem to remove element added with jQuery
I have on a page one input, a button to add more inputs and each has a corresponding button to remove it. The problem is I can’t remove the inputs added via button. Only the original is removed.…
jqueryasked 8 years, 10 months ago Amanda Lima 3,428 -
6
votes1
answer1124
viewsDoes Angular 2 replace jQuery and AJAX?
With the use of Angular 2, it is still necessary to use jQuery and AJAX or Angular to replace 100% of these 2 technologies?
-
6
votes1
answer143
viewsSign + before function in Jquery? what does it mean?
I will finish a system started by another colleague who was disconnected from the company and I am in doubt about the use of + before starting the function, and I would like to know the impact of…
-
6
votes1
answer649
viewsWhen marking checkbox, leave visible link
In my content management system, there is a checkbox in every item on the list, whether to edit, delete, view.. It turns out that this button appears all the time, and in case the user does not…
-
6
votes2
answers554
viewsHow to create a Function and call your methods without using new, similar to jQuery’s $ ?
The $ (jQuery dollar) is a Function, however it is possible to access its methods as if it were an object through the operator ".". Someone could explain, in what way I could do this in a Function…
-
6
votes2
answers4340
viewsSend checkbox with ajax jquery php
I have the form to send/work perfectly with the other fields, but I cannot receive the checkbox selections. I need help to receive/manipulate in php: THE HTML: <div class="input-group">…
-
6
votes2
answers931
viewsHow to classify a table from A to Z?
I have an HTML table that brings information from the database. I wonder if there is any way to sort from A to Z and vice versa this data by clicking on the column name in the table? These data are…
-
6
votes1
answer2355
viewsChange the height of the div according to the screen size and adapt when adjust
Hello, I’m trying to adjust the height of my Ivs as the div that has the most text, when the page loads, works normal, but when I change the screen dimensions, it doesn’t work. HTML <div…
-
6
votes3
answers1530
viewsSend file and text via jquery Asp.net mvc
Guys I managed to send the file through this code: var jqXHRData = null; $(function () { $('.progress').progress({ percent: 0 }); $("#divUpload").on('click', function () {…
-
6
votes1
answer577
viewsProblem with jquery-ui autocomplete via Ajax/PHP
Talk to the guys! I’m doing an application that recovers cities from a SOAP webservice, my application is already all ok, with queries, however I’m trying to implement now an autocomplete, and I’ve…
-
6
votes1
answer2249
views2 gifs alternating the same space (frames loading correctly)
Good evening guys, I’m having a little challenge here and so far I haven’t managed to get the groove, if anyone can help me I would be very grateful: I am trying to put 2 gifs allocated in the same…
jqueryasked 8 years, 4 months ago Hugo Deveza 113 -
6
votes3
answers151
viewsCheck if URL contains number
I would like to check if the current URL contains numbers after the #. I don’t need to know if it contains a specific number or a quantity of numbers, I just need to know if there is any number…
-
6
votes2
answers2375
viewsAdd real Brazilian currency div
The script is adding up, but only numbers. I would like to have the values with dots and commas. For example: 1,000,00 + 100,00 = 1,100,00 Somebody give that strength? Follow the code below:…
-
6
votes1
answer328
viewsIt is possible to determine the access path to the file in Function
I have a Java WEB application where I am using a Function that opens the file .pdf which I determine, but it only opens the files .pdf that are in the same folder where this saved my project,…
-
6
votes3
answers249
viewsChange data value=" of tooltips if displayed in resolution less than 767px?
I’m implementing a few tooltips on a contact form I am developing. It turns out that when it is loaded in lower resolution (below 767px), it is cut tooltips. This is due to the fact of tooltips have…
-
6
votes1
answer180
viewsDIV TEXT Fixed only in DIV PAI space
Hello, I’d like to do the following. <div class="pai"> <div class="form"></div> <div class="text"></div> </div> I have a div FATHER And inside of it are two divs…
-
6
votes2
answers3233
viewsHow to calculate parcels (R$) and fill in inputs?
I would like help to implement the plot calculation and fill/create inputs according to the number of plots. Code below and in https://jsfiddle.net/wnm3jhr7/: $(document).ready(function(e) {…
-
6
votes1
answer68
viewsAnimation div with Jquery does not recognize keys
<!DOCTYPE html> <html lang="pt"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport"…
-
6
votes3
answers42294
viewsSelect option from a select
I have the following HTML: <select id="faturamento-mes-referencia"> <option value="1">Janeiro</option> <option value="2">Fevereiro</option> <option…
-
6
votes1
answer285
viewsGet mouse position in percentage by clicking on image
I have an image on the screen and I need to click on the image and know the position where I clicked on the X and Y of the image. For example, I clicked on the center of the image, then the X would…
-
6
votes4
answers5283
viewsSeparate an array into groups?
I have the code below answered by a question similar to this but I would like to upgrade, this is the current function: function separar(base, maximo) { var resultado = [[]]; var grupo = 0; for (var…
-
6
votes4
answers2929
viewsHow do I capitalize the first letter?
I have the function, and it works perfectly: $.fn.capitalize = function() { function isTRChar(key) { var trchar = [231, 246, 252, 287, 305, 351]; for (var i = 0; i < trchar.length; i++) { if…
-
6
votes2
answers991
viewsIdeal attribute not to be 'clickable'
Good afternoon. I am making a button that has the function of increasing the quantity of products in the cart. However, when you click it many times, the element is 'colored' as if it were a word or…
-
6
votes2
answers3042
viewsIncreasing/decreasing number effect
I searched the Sopt and I couldn’t find what I wanted Suppose I have one button and, when carrying out a click, he alter the value of some div or input. The initial value is 1, and to the click on,…
-
6
votes1
answer80
viewsDoubt about $.post and $.ajax behavior
I’ve always been used to using $.ajax() for all my requests of the type, and this works perfectly. An example that is even occurring now is the following: $.ajax({ type: "POST", url:…
-
6
votes2
answers120
viewsDivision greater than R$999.00 results in Nan. How to format correctly
Division less than R$999.00 works correctly. However, more than R$999.00 results in Nan. How to revolve this? I’ve already put a replace and nothing! $(document).ready(function() { var demo1 =…
-
6
votes2
answers765
viewsHelp with jQuery. on calculation of plots!
Guys, I have a slightly complicated question for myself that I’m a beginner.. I’m developing a system where the user can select the amount of installments they want to split their purchase.. until…
-
6
votes2
answers978
viewsCheck if user name is unique in real time
Hey there, you guys! Currently, to check if a username is unique, I do it in the most basic way. Sending the POST to a PHP page that checks in Mysql, only then returns the error. php.: <form…
-
6
votes3
answers14621
viewsTable does not break the line
Here’s what I’m using a table from the site: Datatables and here’s the deal: As you can see the text gets all in line which makes it difficult to read because you have to scroll my doubt is how do I…
-
6
votes1
answer12517
viewsValidation Telephone Field
Guys, I need some help from you. I have a telephone mask, which validates the fields 00000 11111 2222 3333 in sequence. $('body').on('focus', '.celular', function () { var maskBehavior = function…
-
6
votes2
answers764
viewsAutomatic click along with full screen
I have a website, and on the site the user when logging in will enter a page and this page should be full screen automatically without the user needing to click something. I read that it is not…
-
6
votes2
answers247
viewsInfinite scroll on one page with static data
I have the following extrusion and want to limit the amount of "class/posts" to be displayed. I want to create a button so that, when clicking, it displays and goes showing more and more…
-
6
votes2
answers169
viewsAnimation with Javascript/jQuery
I have this html: I wish that when the user dragged, the buttons would appear like this: When you drag it again, disappear ... How could I do this with Javascript/jQuery? Follows the code: <div…
-
6
votes2
answers325
viewsecho is printing the HTML tags
I made a script for subscription newsletter, the user sends the email to register.php and from there the script receives an echo in a message with button, the problem is that the button does not…
-
6
votes1
answer44
viewsFocus on minutes in time type input
Is there any way to "focus" the minutes of a input of the kind time? By default, the focus() direct to the "hours" that is the beginning of the input, empty or filled: <link…
-
6
votes4
answers1946
viewsIncorrect Date/Time Formatting Nan/Nan/Nan Nan:Nan:Nan
The Field DateTime that returns from Database is formatted as dd/MM/yyyy hh:mm:ss, by now when you start looping ($each) the code below the format changes to: "/Date(1566322265000)/". I created this…
-
5
votes3
answers2236
viewsIs there any way to make a standard browser tooltip appear without putting the text in the title tag and without tooltip plug-in?
I am asking this because the application is almost ready and used a plug-in that uses the tag title. This plugin causes clicking on the element to open a popup (in this case a confirmation box),…
-
5
votes1
answer430
viewsHow to determine the final distance of an element from the footer?
In the case in question would be a sidebar, which from a certain height of scrolling from the top, receives position:Fixed, but as the scroll continues it is hidden behind the footer of the site.…
-
5
votes3
answers2323
viewsHow to know if you are resize in width or height?
Is there any way to see if the resize() window is occurring in width or is occurring in height?
-
5
votes4
answers7550
viewsjQuery identifying jQuery’s own change
When click on "put", the field is filled with the information "changed", but when this happens, the Next change does not identify this change. In practice it doesn’t work, how can I make it work?…
jqueryasked 10 years, 9 months ago David Costa 393 -
5
votes1
answer174
viewsHow to export inside the subGrid?
Information: I’m using the jqGrid(4.54), and also implemented the SubGrid, after opening the SubGrid, it is necessary to export the contents of the open table. Question: There is a way to implement…
-
5
votes1
answer107
viewsJqplot error in IE 7
I’m using the plugin JqPlot to generate a bar and column chart. After testing Mozilla and Chrome, which worked perfectly, I ran the test on IE7 and in the IE8 and got the following error:…
javascript jquery internet-explorer internet-explorer-7 jqplotasked 10 years, 9 months ago Eduardo Nobre 356 -
5
votes3
answers54
viewsRemove margin with jquery
On a given page, when opening, I need to remove the margin class content to stay as I intend. CSS: .three-columns .content { margin: 20px 250px 0 250px; } .content { margin: 20px 0 0 250px; } I’m…
-
5
votes4
answers11708
viewsHow do I call a function by pressing Enter in <input>
I’m creating a chat for a website and need the user to just press the enter and the message appears on chat, this function works normally with a field textarea but with input nay. HTML <form…
-
5
votes3
answers419
viewsIn a menu of 3 levels, how to set a time when the event is mouseout on the second level to the third level?
I have a menu with 3 levels vertically (similar to the globe.com), my problem is when I I am in the last item of the 2nd level(for example) and move the mouse to the 1st item of the 3rd level, Hover…
-
5
votes3
answers22986
viewsHow to add +1 in a counter variable to each click?
Each time I click a button, I want to add +1 to a variable. For example: I have a variable count receiving the value 5, when clicking a button I want the value 5 to change to 6 and so on, displaying…
-
5
votes4
answers1759
viewsHow do I make all items in a menu equal in size regardless of quantity?
I want to make a menu that always leaves the items with proportional sizes, occupying all the available width and adapting. .top-menu ul { width: 100%; } .top-menu ul li { display: inline;…
-
5
votes2
answers262
viewsHow to use fadein() in addClass()?
I have ten "Id" class elements, minus the first. By clicking a button I remove the next Hide and add the class "show", but when adding it I want to put a fadein effect(). It is possible?