FuncUnit.prototype.width  function     

Gets an element's width or waits until it equals a specified value.

// gets the width
S("#foo").width();

// waits until the width is 100
S("#foo").width(100) 
func_unit.width(width, callback) -> String|funcUnit
{optional:Number|Function}

If provided uses this as a check before continuing to the next action. Or you can provide a function that returns true to continue to the next action.

{optional:Function}

a callback that will run after this action completes.

{String|funcUnit}

if width is provided, returns the funcUnit selector for chaining, otherwise returns the width of the selector.

© Jupiter IT - JavaScriptMVC Training and Support