Forums

[resolved] change tabindex on commentform (5 posts)

  1. aself
    Member
    Posted 4 years ago #

    I added comments to my index page, but want the tab order after "Leave a reply" to go Name -> email -> website -> text area.

    Since the reader can comment on each post on the index page, the tab order skips from Name (post 1) to Name (post 2), etc. I understand that it's because they each have tabindex="1", but can't find or come up with a solution. Any ideas? Thanks!

  2. tomontoast
    Member
    Posted 4 years ago #

    Could you post a link to the page where this is happening. You shouldn't really have two comment forms on one page and that is where the problem lies. The solution is to either remove the tab indexes so the tab order will follow the natural order of the page or you can modify your theme template so it adds one to the order every time it gets to a new field.

  3. aself
    Member
    Posted 4 years ago #

    Sure, here's the link http://cdavidmcvayschool.com/blog/

    I'll try removing the tab indexes first. Thanks!

  4. aself
    Member
    Posted 4 years ago #

    Thanks tomontoast! Removing the indexes did the trick.

  5. daniiswara
    Member
    Posted 4 years ago #

    or if you think it need to put tabindex automatically, try automatic tabindex,

    but I agree, it will be more usable without tabindex, as long as web page structure are already in a logical order.

Topic Closed

This topic has been closed to new replies.

About this Topic