FuncUnit.prototype.html  function     

Gets the html from an element or waits until the html is a certain value.

//checks foo's html has "JupiterJS"
ok( /JupiterJS/.test( S('#foo').html() ) )

//waits until bar's html has JupiterJS
S('#foo').html(/JupiterJS/)

//waits until bar's html is JupiterJS
S('#foo').html("JupiterJS")
func_unit.html(html, callback) -> String|funcUnit
{optional:String|Function}

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

{optional:Function}

a callback that will run after this action completes.

{String|funcUnit}

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

© Jupiter IT - JavaScriptMVC Training and Support