Hello

I have question about JQUERY.

Im using
$(".item").draggable({ revert: 'valid' });  // for making draggable
content

Im inserting data to PHP file by
$.post("insert.php", { name: "123", time: "123" } );

After insert im loading actual content by

$.ajax({
  url: "view.php",
  cache: false,
  success: function(html){
    $("#results").append(html);
  }
});

I need to load data from view.php and i would like to make this ajax
loaded data draggable !
if i load <div class="item">item1</div> it is not draggable !!

If i place pure html code to my file it workings fine
but im not abble make draggable content loaded from AJAX request.

I hope that exist some way to resolve my problem

Thank you for your help !!!




Reply via email to