Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery.min.js"></script>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" type="text/css" />
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
    <script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  <style>
    .info-container { margin-top: 3em; padding:1em; border: 1px solid black;}
    .show-more {display: none;}
    .do-show-more {cursor:pointer; float:right; color:red;}
  </style>
</head>
<body>
  <div class="info-container">
    <div class="info">
      Alltid her
      <span class="do-show-more">Vis mer</span>
    </div>
    <div class="show-more">
      Bare når vis mer 
    </div>
</body>
</html>
 
$(function() {
  $(".do-show-more").click(function() {
    $(this).parent().parent().find(".show-more").slideToggle();
  });
});
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