Wrap a Table in a div Then appened a new div
<p>How do i Wrap a table in a div? </p>

<p>I'm using $("table").each(function() to locate the tables i then need to enclose it in a div this is a snippet of my code tNum is just a sequential number to give the div a unique id</p>

<pre><code>     var strToAppend = "&lt;div&gt;Blah Blah&lt;/div&gt;
     $(this).wrap(function(){
       return "&lt;div class = 'tabDiv'  id='tabDiv' + tNum +"&gt;" + $(this) + "&lt;/div&gt;" +   strToAppend;
   });
</code></pre>

<p>this crates   [object Object]  before the table but no strToAppend</p>

<p>[object Object] is seen in the web page
What am i doing wrong? </p>
