FuncUnit.prototype.attr  function     

Gets the value of an attribute from an element or waits until the attribute equals the attr param.

 //gets the abc attribute
S("#something").attr("abc")

//waits until the abc attribute == some
S("#something").attr("abc","some") 
func_unit.attr(data, value, a) -> Object
{String}

The attribute to get, or wait for.

{optional:String|Function}

If provided uses this as a check before continuing to the next action.

{Function}

callback that will run after this action completes.

{Object}

if the attr parameter is not provided, returns the attribute.

© Jupiter IT - JavaScriptMVC Training and Support