jQuery $('div').html() - function problem
<p>This code should not generate any HTML button dynamically. Coz there is no div in the <code>&lt;html&gt;&lt;/html&gt;</code> section.</p>

<p>But it is generating one.</p>

<p>Why?</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HtmlReWriting.aspx.cs" Inherits="JQuery_Intellisence_Test.HtmlReWriting" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt; 
    &lt;script src="Javascript/jquery-1.3.2.js" type="text/javascript"&gt;
     /// &lt;reference path="Javascript/jquery-1.3.2-vsdoc.js" /&gt;
    &lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        function ReWrite() {
            $('div').html('&lt;input type="button" value="Button1" /&gt;');
     }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;/form&gt;
    &lt;input id="Button1" type="button" value="ReWrite HTML Element" onclick="ReWrite()" /&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
