 <p>If it will always be a div, and you know the element's ID:</p> <pre><code>$("#myElement div[data-custom-property]:first") </code></pre> <p>Otherwise, this will work, too, though it's best to be as specific as possible:</p> <pre><code>$("[data-custom-property]:first") </code></pre>