Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery append content to div

Tags:

jquery

I load a content to <div id="wrapper"></div> via jquery.

$('#wrapper').html(data);

When the content inserted into wrapper, there is another div with id="video1".

How can I append something to that id="video1"

like image 825
user2322509 Avatar asked May 04 '13 19:05

user2322509


1 Answers

$('#video1').append('<p>Test</p>');

For demo, I have appended p here.

like image 164
palaѕн Avatar answered Oct 18 '22 04:10

palaѕн