I am using the jQuery Quicksand plugin -- http://jsfiddle.net/se9pY/
but I get rawDestElement is undefined
in FireBug...
$(function() {
$("#filter a").click(function() {
var $this = $(this),
$oriColl = $("#boxes"),
$clonedColl = $oriColl.clone(),
filtered = ($this.text() == "all") ? $("#boxes li") : $("#boxes li[data-type=" + $this.text() + "]");
$("#boxes").quicksand(filtered, { duration: 800, easing: 'easeInOutQuad' });
});
});
What开发者_运维问答s wrong?
I had this problem a while back, turned out to be a simple oversight. You probably figured this out by now, but you likely just need a unique data-id attribute on all list items.
<li data-type="test" data-id="id-1">...</li>
精彩评论