Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <input type="text-area" id="target" rows="10">Type @ to see the dropdown.... </input>
        <div class="dropdown">
        <ul id="dropdown" class="dropdown-menu hide" role="menu" aria-labelledby="dropdownMenu">
          <li><a> One </a></li>
          <li><a> Two </a></li>
          <li><a> Three </a></li>
          <li><a> Four </a></li>
        
        </ul>
      </div>
</body>
</html>
 
$("#target").keydown(function(e) {
   console.log(e);
  if(e.which === 50 && e.shiftKey === true ){
    $('#dropdown').removeClass('hide').addClass('show');    
  } else {           $('#dropdown').removeClass('show').addClass('hide');
  }
  
  
 
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Selvaganeshpro
0viewers