SyntaxFix
Write A Post
Hire A Developer
Questions
You can try using jQuery with the Attribute Contains Prefix Selector.
$('[id|=q1_]')
Haven't tested it though.