title: Adding css to the dynamically added rows for a table in the html
body: <p>I have written a script that adds rows (having data) for a table dynamically. This is working fine for me.
  some times I come across rows that don't have data BUT I still want to insert a blank row.
  Currently the width and height of blank row is not <strong>same</strong> as that for the row having data.</p>
  
  <p>I though I can solve this problem by fixing the width and height of the row. I want to do this because I want to have uniformity among the rows that have data in them and blank rows.</p>
  
  <p>I think I have to use css property in the jquery for these manipulations.</p>
  
  <p>I want to know how to add css for the rows that are dynamically added??</p>
  
  <p>I have written a script that creates a row in jquery and adds it to the table <strong>status</strong></p>
  
  <pre><code> &lt;script&gt;
  socket.on('stat', function (data) {
          var row = $("&lt;tr&gt;&lt;td&gt;"+data+"&lt;/td&gt;&lt;/tr&gt;");  
              $("#status").append(row);                   
      });
     &lt;/script&gt;
  </code></pre>
  
  <p>Now to add css I tried something like this.
  I created a class called newRow.</p>
  
  <pre><code>&lt;style type ="text/css"&gt;
  
  .newRow{
  
          width: 200px;
          height: 200px;
     }
  &lt;/style&gt;
  
  
   &lt;script&gt;
      socket.on('stat', function (data) {
              var row = $("&lt;tr&gt;&lt;td&gt;"+data+"&lt;/td&gt;&lt;/tr&gt;");  
                  $("#status").append(row);
                     $("#"+row).addClass('newRow');  // Is this right way of adding a class
  
          });
  
  row.className = "newRow";  // Is this correct.
  
  &lt;/script&gt;
  </code></pre>
  
  <p>This doesn't seem to work.</p>
  
  <p>I also tried doing this.</p>
  
  <pre><code> &lt;script&gt;
  socket.on('stat', function (data) {
          var row = $("&lt;tr&gt;&lt;td&gt;"+data+"&lt;/td&gt;&lt;/tr&gt;");  
              $("#status").append(row).css("width" : 200px; "height: :200px);                 
      });
     &lt;/script&gt;
  </code></pre>
  
  <p>this also doesn't work.</p>