SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist webchalkboard's Avatar
    Join Date
    Jan 2005
    Location
    Bristol, UK
    Posts
    494
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Submit on press enter

    Hi,

    Can anyone suggest why the login form at the top of this page

    http://www.cashbackjunction.com

    Does not allow people to login when they fill in the form and then press enter?

    It works if you tab onto it, but not default to submiting when you just press enter after filling in your password... I think it might be something to do with having multiple forms on the same page?

    Any ideas welcome, this is really bugging me.

    Thanks,
    Tom
    Websites for Sale - Sell websites in a purpose built marketplace
    Then do some Shopping

  2. #2
    SitePoint Evangelist webchalkboard's Avatar
    Join Date
    Jan 2005
    Location
    Bristol, UK
    Posts
    494
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok I worked it out, very strange one but for some reason if you specify style="display:none" on the surrounding div element, then it doesn't allow you to submit the form with the enter key. I removed this and put in a call to the hide() js function instead and it seems to work fine. Just another IE thing I suppose
    Websites for Sale - Sell websites in a purpose built marketplace
    Then do some Shopping


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •