Thursday, September 29, 2011

html(String)

html(String val) returns jQuery

Set the html contents of every matched element. This property is not available on XML documents.

Example:

$("div").html("<b>new stuff</b>");
HTML:
<div><input/></div>
Result:
<div><b>new stuff</b></div>

No comments:

Post a Comment