Jquery Dynamic object issue

Jquery Dynamic object issue

Hi All,

I have an issue. My xxx image is a droppable image.When i drag <p> object on the xxx image <p> is dropping but when i create dynamicly xxx image is not being droppable!!

My code is below,
Please help me about this issue


<!doctype html>
 
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Droppable - Revert draggable position</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
  <style>
  #b { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 50px 0 0 0; }
  #xxx { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px 100px; }
  </style>
  <script>

$(document).ready(function(){
  $('button').click(function() {
      Ekle();
    });
});



function Ekle(){
  
  { $("div#b").append("<img id='xxx' src='ax.jpg'/>");}

  }

  $(function() {
    $( "#b p" ).draggable({ revert: "invalid" });
 
    $( "#xxx" ).droppable({
            drop: function( event, ui ) {

      }
    });
  });
  </script>
</head>
<body>
 
 
<div id="b">
  <p>Deneme1</p>
  <p>Deneme2</p>
</div>
 
  <img id="xxx" src="ax.jpg"  height="50" width="50">
  <button id="imgekle">Ekle</button>
 
</body>
</html>