Back

.resize( handler )

Handle a "resize" event on any element in the current set

Equivalent to .on('resize', handler)

Params

handler{Function}A function to execute when an element is resized

Returns

DollarJS (chainable)

Examples

$(window).resize(function(event){ console.log(document.documentElement.clientWidth); })