lib-jquery-example-attribute-text.htm / htm
<html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> document.ready(function(){ var str = $("p:first").text(); $("p:last").html(str); }); </script> <style> p { color:blue; margin:8px; } b { color:red; } </style> </head> <body> <p><b>Test</b> Paragraph.</p> <p></p> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.