unable to create text area using javascript
<p>I want to design a simple text area using javascript. I am using the following function</p>

<pre><code>    function add2(type) {
     var element = document.createElement("input");
     var label=prompt("Enter the name for lable","label");
     document.getElementById('raj').innerHTML=document.getElementById('raj').innerHTML+label;
     element.setAttribute("type", type);

     element.setAttribute("name", type);
     element.setAttribute("cols",20);
     element.setAttribute("rows",50);

     var rohit = document.getElementById("raj");
    rohit.appendChild(element);
    document.getElementById('raj').innerHTML=document.getElementById('raj').innerHTML+"&lt;br/&gt;";

}
</code></pre>

<p>I am using this function in my HTML code as follow : </p>

<pre><code>&lt;input type="button" value="Text Area" onclick="add2('textarea')"&gt;
</code></pre>

<p>But when I am executing this code, it is creating only a simple text box. what should I do ??</p>

<p>Thanks</p>
