Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <form action="" method="post">
  <input type="checkbox" value="NOT" name="size">NOT<br />
  <input type="checkbox" value="THA" name="size">THA<br />
  <input type="checkbox" value="TAB22" name="size">TAB22<br />
  </form>
</html>
 
$('input:checkbox[name="size"]').on('click', function(){
  if($(this).is(':checked'))
  {
  $('<div class="inputArea"></div>')
    .append($('<textarea />', {id:'txtArea_'+$(this).val(), name:'txtArea_'+$(this).val()}))  
  .insertAfter($(this).next('br'));
  }
  else
  {
      $(this).next('br').next('div.inputArea').remove();
  }
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers