3 ms·
Just in case, in Sciter (https://sciter.com https://sciter.com) you can declare div { behavior:check; } div:checked { color:red; } and
by c-smile 5y ago
Just in case, in Sciter (https://sciter.com https://sciter.com) you can declare
div {
behavior:check;
}
div:checked {
color:red;
}
and all divs will behave as checkboxes - will toggle :checked flag on clicks.
Same way:
div {
behavior:radio;
}
div:checked {
color:red;
}
Or even :
table > tbody { /* scrollable table body, behaves as <select>*/
behavior:select;
overflow-y: auto;
}
table > tbody > tr:current { /*current "option" */
color:red;
}
Also you can put this in your markup:
<frameset cols="120px,*">
<div>left</div>
<div>right</div>
</frameset>
to have split view.
No script is required for all these.