Edit in JSFiddle

theWidth = $('.container').width();
theHeight = $('.container').height();

alert('the width is : ' + theWidth + 'px and the height is : ' + theHeight + 'px');
.container{
    width:500px;
    height:350px;
    background:#333;
    
}