Closed scottmmack closed 3 years ago
@scottmmack I have tried to create a plunker with your code and it doesn't compile. Could you please create a small reproducible example in plunker and we will take a look?
@andrewtelnov Ok Andrew thanks, I've put together in a Plunker for you.
https://plnkr.co/edit/TUXIjba8llgl9RIi?open=lib%2Fscript.js&preview
Can see all the surveys rendering but only the last one has the classes needed. All the surveys need the classes applied. Thanks
@scottmmack You can use CSS scopes:
.Acne .sv_q_title {
color: red;
}
.Allergies .sv_q_title {
color: green;
}
.AthletesFoot .sv_q_title {
color: pink;
}
Here is your updated sample - https://plnkr.co/edit/VuIDtlGGQA3r5Lwe?open=lib%2Fscript.js
@tsv2013 Thanks for your reply. Not sure its as simple as that. The classes and css code applies to the various divs and spans for the radio buttons so there might be a lot of code dupication applying "Acne" "Allergies" "AthletesFoot" Was hoping if there was a way append to all in the JS?
Are you requesting a feature, reporting a bug or asking a question?
Asking a question.
What is the current behavior?
Multiple surveys load in but don't apply the classes for styling to all surveys.
What is the expected behavior?
Requesting to have multiple surveys which load under seperate divs. I am trying to assign the same set of classes for styling to all surveys. And if possible a clear button that will reset eveything back to the start.
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code