Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
    <meta charset="utf-8">
    <title>JS Bin</title>
  </head>
  <body>
  </body>
</html>
 
var response = '<table>';
var data = '<tr><td>Hello</td></tr><div>Move me</div>';
response += data + '</table>';
var output = $.parseXML(response);
var div = $(output).find('div');
var tr = $(output).find('tr');
console.log(div[0], tr[0])
Output

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

Dismiss x
public
Bin info
dhirajbodicherlapro
0viewers