After loading the inner div (#book_table) via ajax, I want to resize the body body to accommodate more content.
var new_width = parseInt($('#book_table').css('width'))+407;
$('body').width(new_width);
Works in FF and Safari, but does not work in IE with "Invalid Argument". In unpacked jQuery 1.3.1 line 1049:
elem[ name ] = value;
Passing a literal value, however, works in IE:
$('body').width(1200);
Bill bice
source
share