Dane filtra JQuery

var $previous = $('.navlink').filter(function() { 
  return $(this).data("selected") == true 
});
Matteoweb