Response title
This is preview!
$("#add").click(function(){ var $newIems = $("<div class='post-body post item'>itemName</div>") $(".items").isotope("append", $newIems, true); }); $("#sort").click(function(){ $('.items').isotope({ getSortData : { content: function ( $elem ) { return $elem.find('.post-content').text(); } } }); $('.items').isotope({ sortBy : 'date' }); $('.items').isotope( 'reLayout' ) });
© 2013 jQuery Foundation
Sponsored by and others.