Q:

In jQuery find matching value in set of elements and return that element

I have a data-node-id attribute on body 
<body data-node-id="1093>

I also have what could be a matching id in the following collection under .navItemParent
<div class="row small-up-5 navItemParent">
    <div class="column navItem">
        <a href="/" data-node-id="1093"><span class="topLineNav">Dining</span></a>
    </div>
    <div class="column navItem">
        <a href="/" data-node-id="1111"><span class="topLineNav">Dining</span></a>
    </div>
    <div class="column navItem">
        <a href="/" data-node-id="1211"><span class="topLineNav">Dining</span></a>
    </div>
</div>

Basically I need to see if any data-node-id on the a tag matches the current value on the body tag.
I tried (the if condition below)
    if ($(".navItemParent").find(" .navItem a").data("node-id") === $("body").data("node-id")) {
        $(".navItemParent").find("a.active").removeClass("active");
        $(".navItemParent .navItem a").addClass("active");
    };

A:

This will do it I think:
var matches = $(".navItemParent").find('a[data-node-id="' + $("body").data("node-id") + '"]');
alert("Found " + matches.length + " results");

