RTO_DOM_highlight.js
Helper file documentation for
RTO_DOM_highlight.js.Docs updated: 2025-12-17
Summary
Highlight a selector inside a controlled tab.
- Exports:
RTOHighlight - Depends on: RTO_form_api.js
- Uses data attributes:
data-rto-highlight,data-rto-ms,data-rto-tabkey
What it is
Quick helper to highlight an element inside a controlled tab (useful for debugging selectors).
Download
Download RTO_DOM_highlight.jsExample
<button data-rto-tabkey="app" data-rto-highlight="#submit" data-rto-ms="1200">Highlight submit</button>
<script src="../RTO_helpers/RTO_form_api.js"></script>
<script src="../RTO_helpers/RTO_DOM_highlight.js"></script>
Data attributes
data-rto-tabkeydata-rto-highlight(selector)data-rto-ms(duration)