I have a body with data-id tag and im trying to access its html content. For simple textboxes with id .val() works fine. But for this particular, I dont have id only data-id. How can I access its content?

```
    <body data-id="myid"> 
      some html code is here 
    </body>

```

i want to access its content, i tried following

```
$('body[data-id="myid"]').val();
$('body[data-id="myid"]').value();
$('body[data-id="myid"]').html();

```

only get "undefined" at best