-
August 19th, 2014, 12:06 PM
#1
Not Tab Stop At a Checkboxn If the Previous Checkbox is Unchecked
Hello.
I have an HTML form with several check boxes, each on a separate row.
If check box 2 in unchecked, I do not want the user to be able to tab stop at check box 3, but bypass 3 and tab stop at check box 4.
Here is the code I'm using by setting tabindex="0" when the userAllowPayeeChange check box (2) has a value of 0 (unchecked), which is not working.
The code below is setting the tabindex for check box 3.
Code:
<tr>
<td style="padding-left: 30px;"><fmt:message key="Payee Name Search" /></td>
<c:choose>
<c:when test="${!sessionScope.userInfo.userAllowPayeeChange}">
<td><h:selectBooleanCheckbox value="#{PermissionGroup.payeeNameSearch}" /></td>
</c:when>
<c:otherwise>
<td tabindex="0"><h:selectBooleanCheckbox value="#{PermissionGroup.payeeNameSearch}" /></td>
</c:otherwise>
</c:choose>
</tr>
Any suggestions will be greatly appreciated!
Thanks,
Rita
-
August 20th, 2014, 02:32 PM
#2
Re: Not Tab Stop At a Checkboxn If the Previous Checkbox is Unchecked
Try the html forum. This one is for java
Norm
-
August 20th, 2014, 02:48 PM
#3
Re: Not Tab Stop At a Checkboxn If the Previous Checkbox is Unchecked
I was able to resolve this issue using JQuery and $(document).ready().
Originally Posted by ritag
Hello.
I have an HTML form with several check boxes, each on a separate row.
If check box 2 in unchecked, I do not want the user to be able to tab stop at check box 3, but bypass 3 and tab stop at check box 4.
Here is the code I'm using by setting tabindex="0" when the userAllowPayeeChange check box (2) has a value of 0 (unchecked), which is not working.
The code below is setting the tabindex for check box 3.
Code:
<tr>
<td style="padding-left: 30px;"><fmt:message key="Payee Name Search" /></td>
<c:choose>
<c:when test="${!sessionScope.userInfo.userAllowPayeeChange}">
<td><h:selectBooleanCheckbox value="#{PermissionGroup.payeeNameSearch}" /></td>
</c:when>
<c:otherwise>
<td tabindex="0"><h:selectBooleanCheckbox value="#{PermissionGroup.payeeNameSearch}" /></td>
</c:otherwise>
</c:choose>
</tr>
Any suggestions will be greatly appreciated!
Thanks,
Rita
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|