2 ms·
Exactly like smanek described to define the tags. Then you use them like this: <question:required> <question:text> Would you recommend us to a fri
by byoung2 17y ago
Exactly like smanek described to define the tags. Then you use them like this:
<question:required>
<question:text>
Would you recommend us to a friend?
</question:text>
<answer:choice>
<input type="radio" value="Yes">
</answer:choice>
<answer:trigger>
<input type="radio" value="No">
</answer:trigger>
<question:subquestion question:trigger="No">
Please explain why you wouldn't recommend us:
...
</question:subquestion>
</question:required>
I then used jQuery to bind events to the newly created tags to hide/display subquestions based on the response, and css to style it.