CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2014
    Posts
    5

    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

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Not Tab Stop At a Checkboxn If the Previous Checkbox is Unchecked

    Try the html forum. This one is for java
    Norm

  3. #3
    Join Date
    Aug 2014
    Posts
    5

    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().

    Quote Originally Posted by ritag View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured