View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
18137Feature requestsTheme editorpublic2026-11-19 21:34
Reportertammo Assigned To 
PrioritynoneSeverityfeature 
Status closedResolutionduplicate 
Summary18137: Add (sub-)question code as a class to html of (sub-)question
Description

Use case:
when using javascript or when styling the question code and/or subquestion code as a class can tremendously help the developer targeting questions or subquestions.

For example when reordering or when setting certain subquestions as titles in MC questions.

TagsNo tags attached.
Bug heat4
Git branch / Pull Request URL

Relationships

duplicate of 11870 acknowledged Add a specific class with the code to all answer-item 

Users monitoring this issue

There are no users monitoring this issue.

Activities

tammo

tammo

2022-05-21 10:06

partner   ~69948

example: question code is q01
class added to highest level of HTML of question is q01

tammo

tammo

2022-05-21 10:08

partner   ~69949

css may contain statement like:

div[class^="q"] {
background: #ffff00;
}

https://www.w3schools.com/cssref/sel_attr_begin.asp

c_schmitz

c_schmitz

2026-11-19 21:34

administrator   ~87632

This asks for the same as 11870 (question and subquestion codes as CSS classes), so we are closing it as a duplicate to keep the discussion in one place. Please add your comments and votes there.

Issue History

Date Modified Username Field Change
2022-05-20 17:18 tammo New Issue
2022-05-21 10:06 tammo Note Added: 69948
2022-05-21 10:06 tammo Bug heat 0 => 2
2022-05-21 10:08 tammo Note Added: 69949
2026-11-19 19:45 c_schmitz Status new => acknowledged
2026-11-19 21:34 c_schmitz Relationship added duplicate of 11870
2026-11-19 21:34 c_schmitz Note Added: 87632
2026-11-19 21:34 c_schmitz Bug heat 2 => 4
2026-11-19 21:34 c_schmitz Status acknowledged => closed
2026-11-19 21:34 c_schmitz Resolution open => duplicate