You’ll have to insert the value into the string manually in JavaScript using string concatenation. Try this instead:
$('.result:nth-child(' + a + ') .name .title')
0
solved Using a variable in a CSS selector [duplicate]
You’ll have to insert the value into the string manually in JavaScript using string concatenation. Try this instead:
$('.result:nth-child(' + a + ') .name .title')
0
solved Using a variable in a CSS selector [duplicate]