Droppable Problem with dynamic elements
Hello,
I am working on a project similar to the photo manager demo. The one addition I have is the items that are dragged to the other container are search results.
This means, non of the dynamic elements are there when the page first renders.
I am using the Andrew Rowland code which uses the Lucence engine w/ Codeigniter and it works amazingly except for the problem mentioned above.
Does anyone know how to get jQuery to notice dynamic elements?
*** jQuery search code ***
$("#search_query").bind("keyup", function(e){
clearTimeout(delayed);
var value = this.value;
if (value) {
delayed = setTimeout(function() {
$.post("<?=site_url('search/result')?>", {search_query: $(e.target).val()},
function(result_list){
$("#gallery > *:not(h3)").remove();
$("#gallery").append(result_list);
});
}, 400)};
});