Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery append to window

how can i append a div directly to the window object?

<html>
<head>
</head>
      <body>
           <div><div>
           <ul>..</ul>
      </body>
</html>

and i want to append an element after the ul, but not something like $('ul').after(element), i just want to append it directly to body. thanks

like image 503
kmunky Avatar asked Oct 14 '09 16:10

kmunky


1 Answers

$("body").append(element); or $(element).appendTo("body");

like image 142
Sampson Avatar answered Sep 30 '22 16:09

Sampson