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-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <input id="skills-box" type="text" >
  <button class="btn-add"> copy me</button>
  <div class="label-primary">Your Text Here: </div>
</body>
</html>
 
$(".btn-add").click(function() {
var value = $("#skills-box").val(); 
$('.label-primary').append(value);
  
//optional to clear text area
$("#skills-box").val('');
  
});
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers