Why can't I add a
with JQuery .html?

前端 未结 4 843
一个人的身影
一个人的身影 2021-01-04 07:32

Why does this code work:

$(\'div.error_container\').html(\'
No more foo allowed
\');

But this code cau

4条回答
  •  一整个雨季
    2021-01-04 07:39

    This works perfectly for me:

    
    
    
    
    
    
    
    

    in Chrome and Firefox. What version of jQuery are you using?

    On a side note
    is XML (including XHTML) not HTML. HTML is
    .

提交回复
热议问题