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
-
2
votes1
answer55
viewsWidth of an element calculated with jQuery
Here’s what I want. When I hover over the li, the div topoMenuBarra cease to be display:none to be display:block, and the width the div is equivalent to a that exists within the li. He’s taking as…
jqueryasked 9 years, 10 months ago Felipe Viero Goulart 3,693 -
2
votes3
answers89
viewsIs there a plugin that serves as a mask and validator for 24h hours?
I searched but only found plugins for time with "select" and schedules in formed AM/ PM. I would like one that the person could type and stay in this format: 23:59:59…
-
2
votes1
answer240
viewsHow to run Javascript function on the Current page through the Application Controller?
I’m doing a browser validation (IE < 10) through the Application Controller with the gem "browser". I need any application page that is accessed to run a Javascript function with a message saying…
-
2
votes2
answers439
viewsConverting values for calculation to JQ
How can I convert the value of an input 1,11 for 1.11, so it can be added to other values? This in jQuery. My input is masked for real values.
-
2
votes2
answers3120
viewsSingle Page Application with jQuery
How can I develop a SPA with jQuery? I did with Angularjs with the following code, but I’m having difficulties to migrate to it definitively and decided to stick with jQuery not to be late. var…
javascript jquery html5 angularjs single-page-applicationasked 9 years, 10 months ago Vinícius Lara 3,750 -
2
votes3
answers21897
viewsAdd to html code via jQuery
I’m trying to add an HTML code to my HTML via jQuery,Entering any text works,already with a bootstrap tag does not For example: $(function($){ $('#enviar').click(function (e) { var linhas =…
-
2
votes1
answer127
viewsEvent Tracking Google Tag Manager
I created the event in Google tag manager, and I need to bring the value that is in the ID clicked. But in Analytics it shows as 'Undefined', someone has some hint? $('a#HomeB02').on('click',…
jqueryasked 9 years, 3 months ago lucas inverso 143 -
2
votes1
answer215
viewsUse jquery without refresh on the page
I have this jQuery and when I click on the button it updates with the result and gives a refresh on the pag,in vdd changes the test/index.html link to test/index.html? ,I wonder if you have how to…
-
2
votes1
answer427
viewsJSON return in an array in the LOOP
I need to save the return of JSON in an array, i.e.: $.ajax({ type: "POST", dataType: "json", url: "/engine/listarPublicacoes.php", success: function(data) { for (var i=0;i<data.length;i++){ var…
-
2
votes2
answers154
viewsDo IF to give Slideup on an element
I have the following HTML: <div class="unidadesTotal"> <div class="unidades">tituloSYS</div> <div style="display:none" class="unidadesConteudo margin-top-25"> <div…
jqueryasked 9 years, 10 months ago Felipe Viero Goulart 3,693 -
2
votes1
answer3702
viewsControl the return button evendo from the browser
I’m using the function in jQuery onbeforeunload but it is being activated by browser back (Back Button). I would like to know how to control the event back from the browser, I have tried several…
-
2
votes1
answer131
viewsHow to allow typing only "yes" or "no" with Regexp in an input?
What is the regular expression to allow you to type yes or no only in a field.? It is allowing repeating the characters and cannot. $('body').on("keyup",".logical",function(){…
-
2
votes1
answer1561
viewsUpload only with jQuery.ajax and PHP
I wonder if it is possible to upload a file using only $.ajax({...}) unfulfilled Submit of the form and if so, how? Note: I would like to put this script in the event onchange. Note 2: If possible I…
-
2
votes2
answers121
viewsRefresh to a div
I’m having trouble applying the following Javascript code to my platform: <script> var $scores = $("#refresh"); setInterval(function() { $scores.load("index.php #refresh"); }, 30000);…
-
2
votes3
answers312
viewsPlaceholder does not work in Textarea
I have a form with a textarea, put a placeholder us input and is working perfectly, except in the textearea. <form name="trabalheConoscoFormulario" id="trabalheConoscoFormulario" action=""…
-
2
votes1
answer2580
viewsHow to update "<form></form>" without Refresh?
My form is a shopping bag when. Submit() the form #add-Cart-head, it adds the product without refresh, but I wanted to have a reply that updates the bag that sits at the top of the page. The "GET"…
-
2
votes2
answers977
viewsHow to use JSON response?
After a lot of trying I arrived at this result of JQUERY AJAX, but I still could not use the JSON data, they do not work, how should I do ? give a Help ! thank you The JSON response ta at the end…
-
2
votes1
answer465
viewsDeploy dependent Select with AJAX and Jquery in Zend
I am new to programming and am putting together a small system for a specific collection control. But I need to fill in some fields without reloading the page (AJAX) and others when the select is…
-
2
votes1
answer466
viewsCSS Toggle Switch with <select>
I need to transition from this script to use with <select>. See well the script working is like this http://callmenick.com/tutorial-demos/css-toggle-switch/ My selects (over 88) are ONLY in…
-
2
votes1
answer2301
viewsNot receiving negative numbers in an input
I have the following code: http://jsfiddle.net/ntywf/1987/ $(document).ready(function () { $('input').keyup(function() { var $th = $(this).val(); $th = $th.replace(/[-]/g, ""); $(this).val($th)…
-
2
votes2
answers4072
viewsShow and hide a div by clicking the same link
How do I show a div when I click on a link and hide again when I click on the same link?
-
2
votes2
answers90
viewsHow can I add a tagname(data-state) to my Hidden input with attr?
I am not able to add a data attribute(data-state) as I did with the other tag(value, type, name, etc) as shown in the following image: $(".clicka").on("click", function () { $('#calendartable…
-
2
votes1
answer244
viewsCreate an animation effect that runs only once, after a certain bearing height
I’m trying to create an animation for a div after the scroll is higher than a value (in my case, 1100). It works to some extent, but after it goes past 1100, every time you move the scroll this…
-
2
votes1
answer62
viewsApply limit function to all textareas
I am manually imposing character limit on my textareas with this code: <textarea onKeyDown="limitText(this.form.message,this.form.countdown,240);"…
-
2
votes3
answers1139
viewsHow to use the preventDefault function in an event click in an iframe?
I manipulate the iframe DOM as follows: (http://api.jquery.com/contents/) $('iframe').contents().find('a').função(); We usually use the preventDefault function like this: $( "a" ).click(function(…
-
2
votes2
answers141
viewsHow to hide a div only in firefox
Hello, In what way is it possible to hide a <div> only in Firefox and display in other browsers?
-
2
votes2
answers1692
viewsHow to pass the `id` of a post via``by ultilizing AJAX?
I would like to update via ajax, but I’m having a hard time sending the id of postage via post or get for the external form: php/editarDespesa.php. The form is not displaying the dados, but without…
-
2
votes4
answers2949
viewsFix div at the bottom of the page
I wonder how I leave one <div> fixed at the bottom of the page, like I made her stay down with margin-top, but only that in the Firefox and one thing when I open in the Chrome to <div>…
-
2
votes1
answer8726
viewsHow to get the value of a list of ckeckboxes with jquery?
I’ve tried the following: <input name="chklista" id="chk01" value="01" type="checkbox" />01<br /> <input name="chklista" id="chk02" value="02" type="checkbox" />02<br />…
-
2
votes2
answers601
viewsMaster Detail with Select2
I’m trying to make a master Detail One of its inputs is a Select2, But it does not generate the Select2, until why it is generated only when finished reading the script, and the second way I did,…
-
2
votes1
answer198
viewsHow to disable checkbox in tinymce based on listbox value
I created a popup in the tinymce for Wordpress, for inserting shortcodes video on the page. When opening the window, it shows a listbox menu with various video source options (sites like Youtube,…
-
2
votes1
answer1190
viewsHow do I make a <div> close when it’s clicked off?
It is possible to make it if the person clicks off a div which contains flags it automatically closes, but if it clicks inside the div of the flags nothing happens? NOTE: Only if you click outside…
jqueryasked 9 years, 9 months ago Alexandre Lopes 2,769 -
2
votes2
answers313
viewsHow to create an input grid in Asp.net C# - MVC5
Basically I have a form and I am opening a window (modal) with a list of employees and by javascript I can add the email of the same in the form that will be saved, in another language in this case…
-
2
votes2
answers810
viewsWhich jQuery event to use for database query?
jQuery(function($){ // Chamando as funções $('#busca-cidades').keyup(function(){ ... I am making a query in the database and returning this query formatted with html/css and the query is in…
-
2
votes1
answer622
viewsProblem passing parameters to function
I have the following Javascript code to which I intend to pass parameters from an event onClick, but they are not recognised: HTML <a id="addplaylist" href="javascript:void(0);"…
-
2
votes2
answers60
viewsAdd methods to plugin namespace without selector
I am creating a plugin in js and need to add some methods to this plugin. This is the basis of the plugin so far: (function ($) { function jarbas(params) { ... } $.fn.jarbas = function (params) { //…
-
2
votes2
answers162
viewsCounter in M:S format, javascript
How to make a counter in Javascript/jQuery where it is in this format 00:00 and that it stops and performs an action is stopped, but its limit is 10 minutes, can only stay from 0 until 10 minutes,…
-
2
votes1
answer828
viewsDelete data without refreshing the page
I am no longer using extra pages to use functions inside the PHP page. That is PDO use with a php for functions and use everything on the page without loading anything external. My doubt is how to…
-
2
votes2
answers619
viewsHow to add a (full) div to Asp:Panel using jquery?
Hello. I have the following scenario. I want to use Ajaxcontroltoolkit’s Collapsiblepanelextender to make a collapsed panel. However, the content that this panel will display will be dynamic and…
javascript jquery html asp.net ajaxtoolkitasked 9 years, 9 months ago Leonardo Ribeiro de Aguiar 105 -
2
votes1
answer175
viewsProblem with Masonry’s jQuery library
I downloaded the jQuery library at Masonry and I’ve implemented it into my code and a few other libraries that I have. It even spins but it gets screwed one over the other and you need to give…
-
2
votes1
answer292
viewsTabulation via Jquery
I have a field with the class "codigoBarra" where will be used barcode reader to fill it, at the end of reading with the reader it generates an n, I already managed to capture this and treat,…
-
2
votes2
answers910
viewsHow to select an element in a jQuery selection
For example, I have the following code: var $els = $('elementos'); // cerca de 8 elementos selecionados So from this group of elements, I want an element that has the class active. I tried something…
jqueryasked 9 years, 2 months ago KaduAmaral 11,472 -
2
votes1
answer148
viewsHow to stop $(window). scroll in an on-demand query
I make an on-demand query on my page, I bring the information from the bank while the user uses the scroll. $(window).scroll(function(evento){ evento.preventDefault(); var init = $(".canal .lista…
-
2
votes1
answer684
views$. ajax does not answer
Code: <script> $(document).ready(function () { $("#submitbuy").click(function () { alert("clicou no submitbuy"); var emailc = $("#emailc").val(); alert("variavel emailc atribuida: " + emailc);…
-
2
votes2
answers112
viewsReload image in Chrome
I created a plugin to cut images through javascript and PHP but I’m having trouble revealing the edited image after the success of Crop in ajax. I’ve already researched the subject and found a trick…
-
2
votes3
answers4054
viewsClose div on an output link or when clicking outside
Hello I have the following code. function abreConteudo(element) { alert($(element).attr('class')); alert($(element > "div.descricaoobs").text()); } $(document).ready(function () {…
-
2
votes2
answers8864
viewsFormatting date field with jQuery Masked Input
Expensive, I searched and tested in many ways how to format a date field in jQuery but it’s not working. I’ve imported the jQuery Masked Input in the JSP:…
-
2
votes2
answers26842
viewsSimulate a click event without clicking using jQuery
I have a project here with a problem, I’m close to solving but I need a hand from you! At Home, we have a button called "Covers" that when clicked should be taken to the Developments page. On this…
-
2
votes3
answers1291
viewsHow to recover the attribute of a dynamically created element?
The elements are generated dynamically, thanks to this it does not exist in the DOM. My case is the following: <div class="ui-grid-a">'; <div class="ui-block-a">'+row.nome_item+' id…
-
2
votes1
answer499
viewsDrag div inside another
I wanted to make a volume controller, I’ve done css, php, html, but it lacks js and jquery to finish. I wanted to . ball dragged inside the . control CSS: .bola { width: 10px; height: 10px; }…