Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
  <div id="hello"><tr class='row' align='left'><td>1</td><td>2</td><td>1</td><td><select name='acceptance' id='acceptance'><option value=''>- select -</option><option value='agree'>agree</option><option value='deny'>deny</option></select></td></tr></div>
</body>
</html>
 
$(document).ready(function(){
  /*
  $("#hello").wrap("<div id='wrapdiv' style='background: #550055'></div>");
  var ok = $("#wrapdiv").html();
  alert(ok);
  $("#hello").unwrap();
  */
  
  $("#hello").wrap("<div style='background: #550055'></div>");
  var ok = $("#hello").parent().html();
  alert(ok);
  $("#hello").unwrap();
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers