How could the following code be changed so that the jQuery would know when a new DIV
is added and it could apply for this newly created DIV
, too?
The new DIV
contains an image and is added after image is uploaded.
<script>
$(function() {
$( ".divTestImg" ).draggable();
});
</script>