$(selector).height(value)
$(selector).width(value)
We can use the above two ways to change the height or width of a div or element. but there is also another way, like
$(selector).css({"height": "100px", "width":"100px"})
since the second way can be applied to all css element, why the first method?
There is one major difference: in
width()andheight()you can use function as parameter which returns a value