Let\'s say that i have a variable questionId which is an integer, and i want to find tr elements that have the fragment (\"question_\"+questi
questionId
tr
\"question_\"+questi
Yep, you almost had it:
var selector = "tr[id*='quiz_question_" + questionId + "']"; $(selector)