SyntaxFix
Write A Post
Hire A Developer
Questions
I think this is what you want:
/grand/parent/child[@id="#grand"]