x
1
<input type="text" name="autoselect" id="autoselect" value="change me" class="input" autofocus="autofocus" data-controller="autoselect" />
1
<%= text_field_tag "autoselect", "change me", class: "input", autofocus: true, data: { controller: "autoselect" } %>
CSS is not required or multiple files are needed, check the notes.
Java Script is not required or multiple files are needed, check the notes.
The javascript is avilable at autoselect_controller.js