Meteor: How to treat elements that disappear and reappear <p>I have a page, that lists a collection, that can be filtered. As there are some fancy effects (hover dimming) on these items, they have to be applied once the page has loaded.</p> <p>This works fine, but when I select a criteria that hides an item, and then make it reappear by deleting that filter, these effects are no longer applied to these items.</p> <p>I have tried to create a <code>template.rendered</code> function, but that only works on the first page load.</p> <p>I also thought that adding a <code>'hover #mydiv: function () {...}'</code> inside the <code>template.events</code> section could help, but that still doesn't work. </p> <p>I have even tried to listen to the changes made in the drop-down (<code>'change #myselect': function () {...}</code>) where the filters can be applied, but that's not working either.</p> <p>I also tried to tie it to a dependency, that is submitted when the criteria is selected, that has also failed.</p> <p>Any suggestions what else should I try?</p> <p>Thanks, Alex</p> <p><strong>Edit 1:</strong></p> <p>This is how I treat the filters:</p> <p>in <code>Template.search.events</code>:</p> <pre><code>'change #search-skills-select': function () { Session.set('searchFilter', $('#search-skills-select').val()); } </code></pre> <p>This then goes to:</p> <pre><code>/* This is of course properly handled for nulls, undefineds, etc. */ var searchFilterString = Session.get('searchFilter'); Profiles.find({profileAttributes: { $all: searchFilterString } }); </code></pre>