jQuery: using a variable as a selector This question already has an answer here: jQuery selectors with variables 5 answers I'm having problems using a variable as the selector for a paragraph on which I want to take action. Specifically I have several title elements and the same number of paragraphs. The desired result is that if I click on Title1 then I take an action on paragraph1. I made a si..