How to get innerhtml value in mozilla
<p>I have below html code </p>

<pre><code>&lt;div id="divTest"&gt;
    Hello
    &lt;input type="text" id="txtID" value="" /&gt;
    &lt;input type="button" onclick="getForm();" value="Click" /&gt;
&lt;/div&gt;
</code></pre>

<p>And I have below javascript function to get innerHtml value</p>

<pre><code> &lt;script language="javascript" type="text/javascript"&gt;
    function getForm()
    {
        var obj = document.getElementById('divTest');
        alert(obj.innerHTML);
    }

    &lt;/script&gt;
</code></pre>

<p>I am trying to get the complete innerHtml value. When user put some value in <strong>"txtId"</strong> and when he clicks on button it should show all the innerHtml with <strong>txtId</strong> value in it. It is working fine in Internet Explorer but failing in Mozilla.</p>

<p>Please suggest what type of changes I need to do in javascript function or I need some Jquery for this.</p>

<p>Thanks.</p>

<p>Best Regards,</p>
