how to work with 2 forms?

Discussion in 'JavaScript' started by mcdeere02, Aug 7, 2009.

Thread Status:
Not open for further replies.
  1. #1
    I want to use either form a or form b. if user enters a for example, i will use form a..if he enter b i will use form b.

    how can i do this?????

    i cant do a form in script
     
    mcdeere02, Aug 7, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    you can do a form in script.

    it all depends on your markup - basically, in html, compose both forms and set them to have display: none.

    then create a system whereby you get to pick which one, attach events to the 2 options - then on the click, set the display to block/inline to the relevant form and enjoy!

    good luck :)
     
    dimitar christoff, Aug 7, 2009 IP
  3. JavaScriptBank.com

    JavaScriptBank.com Peon

    Messages:
    141
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if can't not make form, why can you use it?
     
    JavaScriptBank.com, Aug 7, 2009 IP
Thread Status:
Not open for further replies.