jQuery Getting and setting width and height of an element Getting and setting innerWidth and innerHeight (ignoring padding and border)


Example

Get width and height:

var width = $('#target-element').innerWidth();
var height = $('#target-element').innerHeight();

Set width and height:

$('#target-element').innerWidth(50);
$('#target-element').innerHeight(100);