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
-
3
votes2
answers2947
viewsHow to sum the elements of the same class of a group of tables
Hi, I was given a correct answer in a very similar question, but it lacked this detail that I can not solve...how to add the elements of the same class of a group of tables... Example: Jsfiddle…
-
3
votes2
answers217
viewsProblems with date format
I am developing a system using C# MVC and Jquery UI and at the moment I am having problems with date formats, in inputs is the date in the correct format "dd/mm/yyyy" but the server is receiving the…
-
3
votes2
answers1227
views<div> that works like a <textarea> does not break line when it is sent
I’m with a comments plugin for WordPress who’s in a little trouble. It works that way: Is a <div> that works as if it were a <textarea>, only because it works like this, when the person…
-
3
votes1
answer438
viewsHow to remove events associated with elements via ". on('acao'"
I have a modal from bootstrap I use to register/login cadastroModal, but at the end of the order, I’m repurposing it to request the login and for that I added an event on onHiden, but I can’t remove…
-
3
votes1
answer1673
viewsjQuery function must be executed only on mobile
I think the title is self-explanatory. I need a particular function in jQuery to "activate" only when I’m at a resolution less than 1024px.
-
3
votes2
answers446
viewsJavascript on iOS: Avoid click events by scrolling iPhone/iPad
Setting: I have a table and on the Desktop I must keep double click to access the content of each table item. On mobile devices like tablet and smart phone Double click does not work and I need to…
-
3
votes2
answers691
viewsChange phone mask
Hello! I’m trying to alter a mask from a field of my form. Below in the field highlighted in blue, is as it is currently, and in the second field is as wish it remains (without the space between the…
-
3
votes1
answer39
viewsThis script only makes the control when loading the page, How can I do this control during all browsing?
This script controls the existence of the class hide-bar in id header page loading when the class is not yet added to it. I need to find a solution so that once the class is added to the id which is…
jqueryasked 9 years, 11 months ago Marcos Vinicius 7,188 -
3
votes1
answer368
viewsChanging the target of an element with jQuery
How can I pass this code on JavaScript for jQuery? I didn’t understand the context... document.getElementById("imageForm").target = "my_iframe";
-
3
votes1
answer2054
viewsonline users and time spent on the site
How can I get the amount of users online on my site (instantly), using only PHP MYSQL and JQUERY? and respectively get the time the user spent on my site
-
3
votes2
answers8678
viewsReceive responses from jQuery’s Ajax request
When I send an Ajax to run my PHP script the only thing it returns is Success if the script was successfully executed or error if the script was not successfully executed. Question: How to capture…
-
3
votes1
answer675
viewsHow to load an array and split its positions by special character
I have a table where there are filters for it: As you can see in the image, for each column I have a filter where user can type whatever they want to do the search they understand. Now I am allowing…
-
3
votes1
answer1084
viewsWhat is ":eq(0)" for and how?
I was watching a tutorial on slider for jQuery, and in a part of the code, in which the goal was to return to the first image, the author of the code did it in a way that I do not know, and also did…
-
3
votes1
answer121
viewsPrivate functions via ajax - Code Igniter
I am using Code Igniter to create a web system and so that the user does not update the losing page that is already open I use all calls via ajax within "modules". The problem is that if I put a…
-
3
votes3
answers1758
viewsDo I need to insert an HTML tag with jQuery to encapsulate the code below?
How to insert an HTML element after opening and before closing the jQuery tag? That within a each: $("#main_div").append('<div class="Ftitulo">'+item.titulo+'</div>')…
-
3
votes1
answer103
viewsPossible bug input number in firefox
I was developing a calculation where I used a number field and a text field, where in the number field the user would inform the amount of an item and the text field would give the value of the…
-
3
votes2
answers1694
viewsCheck fields when giving Ubmit and if error return to field
I have a very long form and would like to click on Ubmit and the field is in error, that the page can scroll (jQuery) to this field so that the person knows exactly what is wrong. I started out that…
-
3
votes2
answers794
viewsChanging an element with jquery
I have a list of items and each item on that list is a link with a lot of attributes and items within that link. summarizing my link like this: <a href="#" class="editItem list-group-item"…
jqueryasked 10 years, 3 months ago Marcelo Diniz 3,356 -
3
votes1
answer316
viewsTouch events Swipe, swipeRight and Left do not work on android 4.4.2
The touch events do not work on Android 4.4.2 someone would know how to solve this?
-
3
votes3
answers1380
viewsSwitch page time transition
I have an HTML code and I need to make a transition (fade) when I enter another page through the HTML menu I have. The problem is that I’m not able to make this transition. I need to do something…
-
3
votes2
answers3680
viewsHow to do the . jQuery load only the content inside the <main>?
How could I make for that function .load instead of loading the contents of <body> only load content inside <main> ? My jQuery: // Checa se a página foi carregada para evitar aplicar os…
-
3
votes1
answer2103
viewsRunning processes in the background - Accessing same script twice
I have a PHP script that aims to integrate with a third party system. Basically, my script sends image and text files to the client’s ftp. To ensure processing for a long time, I use the following…
-
3
votes1
answer367
viewsHow to make Footer stay in the footer after using AJAX?
I have done several applications and always used the method below to regulate the height of footer. Always using Bootstrap. HTML <div id="footer"> <div class="navbar…
-
3
votes2
answers4972
viewsHow to make a form with date field? (DD/MM/YYYY)
I am a beginner in Kohana and need to make a form with a date field. My form is this: <?=form::open('controllerInscricao/index')?> <?php echo form::select('TURMA_codturma',…
-
3
votes1
answer331
viewsAdd Textbox inside an HTML table with Jquery
I have the Jquery Script below that searches a Material and returns a Json list of that materials, I need to put this data in a table and put a field for the user to enter the amount of these…
-
3
votes2
answers500
viewsOrganize jQuery Ruby On Rails
I have an app in Rails 4 and after scaffolding it generates a *.js.coffee for each model, as I am not using coffeescript renamed to *.js and am trying to use jQuery. The problem is that I need to…
-
3
votes4
answers685
viewsEffect with jQuery locking without reason
I am using the following jQuery command: var timer1; SemConflito("#lp-1").on('mouseover', function(){ clearTimeout(timer1); timer1 = setTimeout(function(){…
-
3
votes5
answers14567
viewsHow to access index from a javascript array
In giving console.log in the variable overlays, I have the following return: [Oh, 36: Oh, 37: Oh, 97: Oh, 98: Oh, 99: Oh, 100: Oh, 101: Oh] 0: Oh 36: Oh 37: Oh 97: Oh 98: Oh 99: Oh 100: Oh 101: Oh…
-
3
votes3
answers65
viewsGo to jQuery
So, I have all 4 Ivs that I want to be changed when the mouse passes and when the mouse leaves it. The effect I wanted to make worked, but I wanted to decrease the code to make it easier to…
jqueryasked 10 years, 3 months ago hahnmatheus 109 -
3
votes2
answers648
viewsHow to increase the height in a lively way?
I’m on a project and I need an object on the side of the page that increases the height as the scroll. The result I have achieved so far is "breaking" as I go down the scroll. How to get something…
jqueryasked 10 years, 3 months ago Mauro Alves 546 -
3
votes3
answers1211
viewsHow to modify form fields if user input is invalid compared to regular expression with Jquery
Guys, I have the following form: <!DOCTYPE html> <html> <body> <form action="enviar.php" method="post" accept-charset="utf-8"> <label>Nome<br> <input…
-
3
votes2
answers14405
viewsRun Javascript function in event by clicking a button inside a table
Good morning, I have a table and in each row of this table I have a button, when I click this button I need to run a function but I’m not able to do it because I think I don’t know how to use the…
-
3
votes3
answers127
viewsjQuery, do not select 'Child' from the element
I have this code that makes of a kind of fancybox, it works well but I wish that the click in the image did not make disappear the '#overlayFancy', it was good that only the click out of the image…
-
3
votes1
answer49
viewsPDO showing connection data if catch trigger inside Alert(result)
Because in my alert(result) ajax the catch of PDO is showing my connection information to the database as shown in the following image: http://puu.sh/bel2Z/e7f230ab8d.png Code: $pdo = new…
-
3
votes2
answers223
viewsWorking with Iframe
How to run the tag: <iframe src="http://localhost.com/web-p/index2.aspx"></iframe> Waiting for iframe execution to complete page loading to proceed with other things. Example: function…
-
3
votes1
answer1152
viewsHow do I update a datatable line with jquery?
I have the following code working to add a row to the table dynamically var NovaLinha = [usuario,email,senha,ativo,acao]; NovaLinha.id = retorno; $('#tabela').DataTable().row.add(NovaLinha).draw();…
jqueryasked 9 years, 9 months ago Guilherme Saldanha 41 -
3
votes3
answers140
viewsSort images by height of each one
I have a list of images with different dimensions. I wanted the images to be sorted from the smallest to the largest: the one that has height the minor was first and the height longer last. Using…
-
3
votes1
answer154
viewsTwo elements with same height with jQuery - all the time
I’m taking advantage of a gallery system that I found on the web where, depending on the proximity of the mouse image, it expands proportionally. Link: Image gallery Well, I adapted the code to be…
-
3
votes3
answers19969
viewsTake the value of select
My Select is like this: <select class="input-medium ajuste" id="sel_mes"> <option value="09/03/2014">Março - 2014</option> <option value="09/04/2014">Abril -…
-
3
votes3
answers1080
viewsAudio API to calculate the duration of multiple songs
I’m working on a player audio and need to know how to calculate the duration of various MP3’s that are selected on the user’s machine by a input of the kind file? EDIT: Follows my current code and…
-
3
votes3
answers5090
viewsLimit text length with jQuery
I have a function that places the famous 3 dots ... after x characters. But I am in doubt of how to make the reticence enter exactly at the end of the word where is the limit of characters. Follow…
jqueryasked 9 years, 8 months ago Arsom Nolasco 1,367 -
3
votes2
answers1985
viewsClone data insertion box from with jQuery
I wanted to make it work with js(jQuery) the interface below: I am using the CSS Foundation framework to develop this project. However, I don’t know how to make a clone using the jQuery of this…
-
3
votes1
answer6540
viewsCSS animation of input and output element when scrolling on page
I’m making a div appear with input animation when the scroll hits a point on the page, the problem is that I can’t make the output animation when the scroll returns. The <div…
-
3
votes1
answer662
viewsHow do I know if the user is updating the page
The user is filling the cart with several items, and I created a jQuery function where the items are instantly added and presented to it. As soon as it finishes choosing the items and clicks on the…
-
3
votes1
answer4567
viewsFind out if the scroll has reached the end of the DIV
How do I know the user rolled the scroll bar of a div to the end? using jquery. That’s all I’ve got so far scrollTop(); but I don’t know how this command can help me…
jqueryasked 9 years, 8 months ago Silvio Andorinha 8,394 -
3
votes1
answer181
viewsAudio player slows down and hangs after playing about ten songs
I’m making a music player in jQuery/Javascript/HTML5 and it’s going well, but when it starts to run the songs +or- in the 13th track starts to slow down the page and gives a "latch" and it’s…
-
3
votes1
answer54
viewsSelect label through . find
I’m trying to create/adapt a tree list, however I am not being able to expand my list by clicking on a label. List: <div id="listContainer"> <ul id="expList"> <li style="">…
-
3
votes1
answer54
viewsWhy doesn’t inArray detect capital letters?
I don’t understand why when I look for PALAVRA the inArray() jQuery does not find it. But if I look for palavra is positive when the array is PALAVRA. The first test I expected to be positive does…
-
3
votes2
answers10604
viewsAdd and Remove Fields with Javascript
I need the user to add the same fields as many times as he wants, and also remove them. I was able to script to add the fields, but remove is not working. HTML <a href="#" data-id="1"…
-
3
votes1
answer345
viewsTag Catch Size Other TAG
I wonder if there is in CSS, or JS something that makes a TAG that takes up space, make the TAG 'father' adapt to the size of the TAG 'daughter'. Ex: <iframe> <body>o Body possuí um…