JQuery - window offset right

Script that counts right offset of an element in a window. Taken from: stackoverflow.com answers

var $whatever = $('#whatever');
var offset_right  = ($(window).width() - ($whatever.offset().left + $whatever.outerWidth()))

Comments

Popular posts from this blog

Access application Google Drive account from javascript without client side authorization dialog

Hibernate delete and update queries with joins

How to set width of a table within Twitter Bootstrap