Friday, December 12, 2014

Get the width and height of a div using jquery

This code shows how to get the width and height of a container, We must know the css selector of the div in order to do this.
//get the class or id of the container
 $('.container').width();
 $('.container').height();

No comments:

Post a Comment