This might be a really silly question, but I have this CSS selector:
$('.result:nth-child(25) .name .title')
Which works. But when I set a variable a = 25, it breaks
$('.result:nth-child(a) .name .title')
Uncaught Error: Syntax error, unrecognized expression: :nth-child
What am I doing wrong?