jquery .filter code example
Example 1: jquery filter data
var $previous = $('.navlink').filter(function() {
return $(this).data("selected") == true
});
Example 2: filter jq
jq '.' | grep value
var $previous = $('.navlink').filter(function() {
return $(this).data("selected") == true
});
jq '.' | grep value