Help With Javascript and HTML

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Blake1710, Aug 30, 2009.

  1. Blake1710
    OP

    Blake1710 GBAtemp Regular

    Member
    185
    0
    Dec 24, 2008
    New South Wales, Australia
    Hey

    Doing javascript at school at the moment and i'm stuck at this exercise. Its supposed to validate a form, so if step 1 is incomplete an alert will tell you and the same for step 2. Only problem is it still pops up when step 1 is complete, and the popup for step 2 will not show. Help would be appreciated. I've already asked the teacher and he isn't sure either.

    Pastebin Link
     
  2. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    17,297
    7,875
    Oct 27, 2002
    France
    Engine room, learning
    There were many errors, I'll details each of them, tell what I've change, and submit a corrected version.

    [Line 66]
    if (validateText(pizzaForm) == true);
     
  3. Blake1710
    OP

    Blake1710 GBAtemp Regular

    Member
    185
    0
    Dec 24, 2008
    New South Wales, Australia
    thanks for your help.

    it works fine now. I'll show the teacher and ask what he thinks. some other people need help with it as well.

    thanks again.
     
  4. DanTheManMS

    DanTheManMS aka Ricochet Otter

    Member
    4,329
    105
    Jun 2, 2007
    United States
    Georgia
    Good ol' "js-fifteen.html" file. Yeah, I made that exact same page about 3 years ago for my Web Design class. Fun stuff. Except not really.