How can I add styles to dynamically added table cells?
        Posted  
        
            by Doc Hoffiday
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Doc Hoffiday
        
        
        
        Published on 2010-04-13T03:50:00Z
        Indexed on 
            2010/04/13
            3:52 UTC
        
        
        Read the original article
        Hit count: 318
        
In my program I have a table that, when loaded, has jQuery add some styles/classes to the table cells and table headers.
Everything works fine until rows are added via functionality on the rest of the page. Instead of adding the classes to the table cell during addition, is it possible to "listen" or fire some event that checks to see if child elements were added to the table.
Essentially, I want something functionally equivalent to this:
$("#table td").live("ready", function(){
 // do something
}); 
but the live/ready won't work on a table cell... Any ideas?
© Stack Overflow or respective owner