SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Location
    Brooklyn, NY
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help with forms and buttons

    I made this page to help illustrate my question.

    You know when you click into a form and the submit button becomes highlighted, so that if you hit enter it will simulate a button click? How do i do that here for the 'new option' section? seeing as how i cant nest forms, i need to be able to highlight the add button when focus is given to the text field above it. Any ideas? id rather not have to make a lot of smaller forms unless i have to, the real page is getting unwieldly as it is. thanks.

    Lawrence

  2. #2
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think you have to make a couple forms i dont know any other way
    Wavelan

  3. #3
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what do you ,mean highlight the button do you mean this

    <input type="button" value="Hit Me!" onclick="this.style.backgroundColor='yellow'">

  4. #4
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what he means is when you enter a value and press enter to add it instead of clicking on the button

    right now enter sends the whole thing I think
    Wavelan

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Location
    Brooklyn, NY
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what he means is when you enter a value and press enter to add it instead of clicking on the button
    yeah, that's exactly what i'd like.


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
  •