title: define dynamic width of textbox using DOM approach
body: <p>i am tyring to insert textboxes to create empty rows but i want first textbox should be of 50px only
  i am creating them onclick event of a button using DOM approach
  how to define the width with respect to following approach</p>
  
  <p>j is a variable being handled somewhere &amp; cols is no: of columns to be created     </p>
  
  <pre><code>for(var t=1;t&lt;=cols;t=t+1)
              {
  
                  var cell = row.insertCell(t);
                  var element = document.createElement("input");
                  element.type = "text";
                  element.id=   'text['+j+']['+(t)+']';
                  element.name= 'text['+j+']['+(t)+']';
                  element.value="";
  
                  cell.appendChild(element);
              }
  </code></pre>