Thursday 8 December 2011

Changing Text Content with jQuery

Two elements with their HTML code swapped.Sometimes you don’t want the actual HTML code in an element; you want
only the text. To do so, replace the html() function with the text() function.
In the preceding example, you swapped the HTML code. If you want to
swap only the text and not the HTML code, use this code:


“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>





My Test Page







This is the text in the STRONG element.

This is the text in the P element.






Free create back link
Meta tag generator 4 seo
If else statement
Increase traffic your blogs
Free Web Promotion



No comments:

Post a Comment