Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="http://docs.jquery.com" />
<script src="http://code.jquery.com/jquery-1.3.js"></script>
</head>
<body>
  <a hreff="#" class=show>tampil</a>
  <a hreff="#" class=hide>hide</a>
  <p class=jquery style="display:block;font-size:100px">Spirit carries on</p>
<script>
  $(document).ready(function(){
    $("a.show").click(function(){
      $("p.jquery").show("fast")});
    $("a.hide").click(function(){
      $("p.jquery").hide("slow")});
  });
    
</script>
</body>
</html>
 
    $("p").click(function () {
      var htmlStr = $(this).html();
      $(this).text(htmlStr);
    });
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers