-
Notifications
You must be signed in to change notification settings - Fork 801
Forms Tab order on serenity form
Victor Tomaili edited this page May 3, 2021
·
1 revision
For input controls, like textbox, textarea...
this.form.FirstName.element.attr("tabindex", 1);
this.form.LastName.element.attr("tabindex", 2);
this.form.Email.element.attr("tabindex", 3);
If control is dropdown which implemented by select2 library, try this:
this.setTabIndexSelect2(this.form.SupplierId.element, 4);
private setTabIndexSelect2(element: JQuery, tabIndex: number) {
element.prev("div.select2-container").find("input").attr("tabindex", tabIndex);
}
Original issue: https://github.com/volkanceylan/Serenity/issues/3935
Copyright © Serenity Platform 2017-present. All rights reserved.
Documentation | Serene Template | Live Demo | Premium Support | Issues | Discussions