inside Archive
-
jQuery: Find left offset while inside $.proxy
Posted on January 16, 2012 | No Commentsthis.progress.click(function(e) { // works var seek = (e.pageX - this.offsetLeft) / $ (this).width(); self_ref[index].seek(seek * self_ref[index].source.duration); }); this.progress.click($ .proxy(function(e) { // doesn't work var seek = (e.pageX - this.offsetLeft) /... -
How can I select all tr’s where no table inside their’s td?
Posted on January 15, 2012 | No CommentsHow can I select all rows in a table but except the first TR and only if the tr’s td’s doesnt contain table element inside them. Ive tried : var... -
Issues with setTimeout() inside jQuery .each
Posted on January 10, 2012 | No CommentsThe following code will not work properly. I’ve tried different variations & searching everywhere but no luck. i = 1; var timer = new Array(); jQuery('a').each(function($ ) { i++; timer[i]... -
Adding a click event inside jquery plugin while maintain access to main jquery object
Posted on January 7, 2012 | No CommentsIn the below code I have a simple unordered list, and in the plugin I am attempting to fire a click event when the li element is clicked. How can... -
What does “style xyz.css” inside a javascript file mean
Posted on January 1, 2012 | No CommentsRecently i saw an open source javascript library have a line like : "style style.css" var x=0 var ver=1 What is the significance of the style directive like above inside... -
jQuery draggable item inside absolute or fixed position
Posted on December 31, 2011 | No CommentsI am using the drag-drop functionality from jQuery UI and it works fine however if I set the div that is containing the draggable items to position: absolute or position:... -
Keep a jquery Dialog inside a tab
Posted on December 28, 2011 | No CommentsI have some tabs. And in one tab I want to open many dialogs. But if the user changes of tab, I want those dialogs to stay in the other... -
jQuery: Increment a number inside a div?
Posted on December 14, 2011 | No Commentsi have this <div class="likes">13</div> and I want to increment this number by +1 when I click a button How can I do that with jQuery? $ ('btn').click(function() { $...