jQuery: load response Document into div
<p>I get an asyc response from the server that contains an HTML that I would like to display:</p>

<pre><code>    $( document ).ready( function ()
    {
       var options = 
       {
        success: showResponse,
        error: errorHandler,
        type: 'post'
       }; 

       // bind to the form's submit event 
       $('#captureForm').submit(function() 
       {
           $(this).ajaxSubmit(options); 
           return false; 
       });
   });

   function showResponse(responseDoc, statusText)
   {
       $('#output').html( responseDoc );
   }
</code></pre>

<p>Where #output is a div where I would like the response document to be injected. The above code does not do the trick.</p>

<p>Any suggestions will be greatly appreciated.</p>

<p>Thanks.</p>

<p>-Raj</p>
