I was hoping to be able to add the question code as a new class to each of the questions in a survey, so that I can format the questions individually without using the question ID (which requires me to update template.css each time I make a new version of the survey). This script allows me to add a new class, but needs to be modified for each question:
Code:
<script type="text/javascript" charset="utf-8_general_ci">
$(document).ready(function(){
$('#question{QID}').addClass('Potatoes'); // "Potatoes" would be the question code for this particular question
});
</script>
As you see, the placeholder {QID} may be used for question ID. However, I have not been able to find a placeholder that works for question code. None of the question-related placeholders listed in the
EM Roadmap
provide the information I need. Many of them, such as {QUESTION_CODE}, seem not to be working in this context.
I'd appreciate your help in finding a placeholder I can use. Alternatively, any other way of implementing question-specific styling that is not broken upon copy/update would work for me
Thanks,