action="" in form to jump menu

Discussion in 'HTML & Website Design' started by dj_gie, Jan 3, 2007.

  1. #1
    Hi, I've just tried to validate my html from w3 http://validator.w3.org/ and it's come up with an error saying that i need to put something in the action="" for my jump menu. Anyone got any ideas in what i should do? My address is http://www.fcbs.co.uk for you to check.

    Kind Regards
     
    dj_gie, Jan 3, 2007 IP
  2. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #2
    Well, you're using JavaScript to send the data, so you don't need the Action property. Just ignore it.
     
    BRUm, Jan 3, 2007 IP
  3. SharkBait

    SharkBait Peon

    Messages:
    5
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Could you just do a javascript:null; kinda deal? so that it validates having an option but since its null it won't actually do anything?
     
    SharkBait, Jan 3, 2007 IP
  4. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #4
    I don't see why it matters that you get that error anyway. You know it works, and I assume you're happy with it.
     
    BRUm, Jan 3, 2007 IP
  5. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am happy with it, but if i don't have valid html, it might not work on all browsers or might not be good for SEO
     
    dj_gie, Jan 4, 2007 IP
  6. BRUm

    BRUm Well-Known Member

    Messages:
    3,086
    Likes Received:
    61
    Best Answers:
    1
    Trophy Points:
    100
    #6
    I can't see this error causing any problems on any browser or being adverse for SEO.
     
    BRUm, Jan 5, 2007 IP