jookyboi
3/29/2011 - 7:32 PM

Get width of hidden elements.

Get width of hidden elements.

var $table = $("#parent").children("table");
$table.css({ position: "absolute", visibility: "hidden", display: "block" });
var tableWidth = $table.outerWidth();
$table.css({ position: "", visibility: "", display: "" });