Artifact Content
Artifact cd4ce12811bc6d6ca1d040ab7ee49108bec42161b2b62068b1a533d9b2658fd1:
- File public/riot-3.13.2/test/tag/attr-selected.tag — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 422)
<attr-selected> <select> <option value="0" selected="{selected % 3 == 0}">0</option> <option value="1" selected="{selected % 3 == 1}">1</option> <option value="2" selected="{selected % 3 == 2}">2</option> </select> <button onclick={selectNext}>Select next</button> <script> this.selected = 0 this.selectNext = function() { this.selected++ }.bind(this) </script> </attr-selected>