Can you add specific CSS classes to specific elements created in the survey to be able to target and customize them?
See original GitHub issueAre you requesting a feature, reporting a bug or ask a question?
I’m requesting a feature enhancement. I’d like to be able to give unique styling to elements like required questions, and the different types of buttons (previous, next and complete). But without specific CSS classes associated with them, I have to work very hard to target those elements.
What is the current behavior?
Currently these elements are created without specific CSS classes.
What is the expected behavior?
I would expect that these elements would have specific CSS classes associated with them.
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
your_code_here
Specify your
- browser: Chrome
- browser version: 58.0.3029.96 (64-bit)
- surveyjs platform (angular or react or jquery or knockout or vue): jquery
- surveyjs version: 0.12.13
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Can you add specific CSS classes to specific elements ...
I'm requesting a feature enhancement. I'd like to be able to give unique styling to elements like required questions, and the different types ......
Read more >Precise Targeting with CSS Selectors | Medium - Carson Ford
CSS is the language of applying styling to HTML. Learn how to target even the hardest to reach elements with this guide to...
Read more >How to Add Custom CSS Classes to WPForms
To add a custom CSS class name for either option, open the form builder and go to Settings » General. From here, go...
Read more >Lesson 1: Understanding ID and Class in CSS
Lesson 1: Understanding ID and Class in CSS. Overview. So far you have added style to various elements in your portfolio page, but...
Read more >How To Modify Attributes, Classes, and Styles in the DOM
In this tutorial, we will learn how to further alter the DOM by modifying styles, classes, and other attributes of HTML element nodes....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would also like to know if it’s now possible to add an id/class to specific elements.
@jyclam Probably this example can help you.