quinta-feira, 6 de junho de 2013

Alves Sempre

    • function(index, text)
      Type: Function()
      A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments.
Unlike the .html() method, .text() can be used in both XML and HTML documents.
We need to be aware that this method escapes the string provided as necessary so that it will render correctly in HTML. To do so, it calls the DOM method .createTextNode(), does not interpret the string as HTML. Consider the following HTML:
1
2
3
4
5
6
7
<div class="demo-container">
<div class="demo-box">Demonstration Box</div>
<ul>
<li>list item 1</li>
<li>list <strong>item</strong> 2</li>
</ul>
</div>

www.rededenegociosalves.com.br