jquery append div inside div with id and manipulate

后端 未结 4 966
轻奢々
轻奢々 2021-02-04 00:08

after 2 hours of searching I decided to ask my question.

I have a div:

I want to add a div inside th

4条回答
  •  悲哀的现实
    2021-02-04 00:39

    You're overcomplicating things:

    var e = $('
    '); e.attr('id', 'myid'); $('#box').append(e);

    For example: http://jsfiddle.net/ambiguous/Dm5J2/

提交回复
热议问题