Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.3.24, 2.5.5
-
None
-
None
-
internet explorer
chrome
Description
I cannot get the focusElement attribute on the form tag to work. I've tried it in both IE and chrome and in neither case will the text field I want to focus when the page loads do so.
Here is the html for the form I'm trying to do this with:
<s:form action="ViewSubscriber" method="GET" cssClass="form-group" focusElement="subscriberListAutocomplete"> <div class="input-group"> <s:textfield name="subscriberName" id="subscriberListAutocomplete" cssClass="subscriberListAutocomplete form-control" placeholder="Subscriber Name" tabindex="1"/> <span class="input-group-btn"> <s:submit value="View Subscriber" cssClass="btn btn-success" tabindex="0"/> </span> </div> </s:form>
If I change the textfield to a basic input element and use html's autofocus attribute, it works fine. I have no idea what else I can try on this.