Jquery append content to div -


i load content <div id="wrapper"></div> via jquery.

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

when content inserted wrapper, there div id="video1".

how can append id="video1"

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

for demo, have appended p here.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -