Append after element was created without reload

Append after element was created without reload

Hey!

I have page. Then I create element like:
  1. <div id="element1></div>
I need add something to this element without reload page...
When I do something like:
  1. $(document).on('click', '...', function(){
  2.     $('#element1').append('...');
  3. });
This doesn't work (

How I can do this ? pls help...