[jQuery] jQuery - innerHtml

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
 
  <script>
  $(document).ready(function(){
 
    var str = $("span:first").html();
    $("span:last").html(str);
 
  });
  </script>
  <style>
  span { color:blue; margin:8px; }
  b { color:red; }
  </style>
</head>
<body>
  <span><b>Test</b> Paragraph.</span><br />
  <span></span>
</body>
</html>
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 홍반장

2010/11/30 20:07 2010/11/30 20:07
,
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/5692

Trackback URL : http://tcbs17.cafe24.com/tc/trackback/5692

« Previous : 1 : ... 774 : 775 : 776 : 777 : 778 : 779 : 780 : 781 : 782 : ... 6391 : Next »

블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Statistics Graph

Site Stats

Total hits:
252117
Today:
845
Yesterday:
1251