title: How to calculate width and height of element in JQuery
body: <p>i have written this code to calculate the height and width of existing element when clicked. is this correct?</p>
  
  <pre><code>$('#submit').click(function(){
  var width = ddbar.clientWidth;
  var height = ddbar.clientHeight;
  alert(width);
  alert(height);
  });
  </code></pre>