SyntaxFix
Write A Post
Hire A Developer
Questions
If it's a direct child you can do as below if it could be nested deeper remove the >
$("#text-field").keydown(function(event) { if($('#popup>p.filled-text').length !== 0) { console.log("Found"); } });