Get content from HTML element in Rails
        Posted  
        
            by Ignace
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ignace
        
        
        
        Published on 2010-03-15T14:47:05Z
        Indexed on 
            2010/03/15
            14:49 UTC
        
        
        Read the original article
        Hit count: 240
        
Hey,
I'm looking for a way to get the content of my div in my Rails view. I would like the literal HTML content, so only HTML and no Rails
I thought inner_html would work, but I get a RJS exception (TypeError: $("content").innerHtml is not a function)
Does anyone know how I can get the content? Thanks!
© Stack Overflow or respective owner