SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Select form doesn't stay open

    For some reason the select box in my forms will stay open as long as the user doesn't release their click. But it isn't acting normally and staying open after the user releases. I've run through the code for it and I don't see anything that could be causing this issue, any ideas?

    The site is:
    http://www.banksandmorris.com
    (still being completed)
    The code for that form is:
    HTML Code:
    <form  form="form" action="http://www.banksandmorris.com/form_post.php" method="post">
            <label for="label">To:<br />
            <select name="Attorney">
              <option value="James">James C. Banks</option>
              <option value="Robert">Robert A. Morris</option>
              <option value="Adam">Adam Ruiz</option>
            </select>
            ....
            ....
          </form>
    Any ideas?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,044
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    mark-up label?

    The only thing I can see is the onblur
    HTML Code:
    <label for="label">To:<br />
            <select name="Attorney">
    
              <option value="James">James C. Banks</option>
              <option value="Robert">Robert A. Morris</option>
              <option value="Adam">Adam Ruiz</option>
            </select>
            <br />
            Full Name:</label>
            <br />
    
            <input name="Name" type="text" class="textfields" id="label" onblur= ""/>
    Notice that the label for "label" is before the select, and the input "label" (with the onblur) is after it. And do you really want the closing label tag after "Full Name:"?

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I didn't even notice that I had them like that. I'll fix it and see if that was the problem.

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For future reference it seems that the label tag being off like that was what caused the problem. Thanks for pointing that out.


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
  •