The, html() method works in all browsers...

text() = returns the concatenated innerHTML properties of all matched
elements
html() = returns the innerHTML property of the first matched element

Generally you don't use text() to retreive the contents of an
element...

BUT, if you want to write to the innerHTML property, then ...

html("blablabla") = sets the innerHTML property to the given string on
every matched element
text("blablabla") = sets the innerHTML property to the given string on
every matched element, AND escapes < and >

Reply via email to