How can i parse information from a form to javascript?

Discussion in 'JavaScript' started by rocknum, Jan 9, 2011.

  1. #1
    How can i parse information from a form in a javascript function?
    and I also need to know if there is a way to grab info from a div to use it later for something else
     
    rocknum, Jan 9, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cash Nebula, Jan 10, 2011 IP
  3. prasanthmj

    prasanthmj Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #3
    prasanthmj, Jan 10, 2011 IP
  4. tacopalypse

    tacopalypse Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yea you just assign the div an id like,
    <div id="foo">hello world</div>

    then use the code
    document.getElementById('foo').innerHTML

    and that should return the value "hello world"

    edit: just saw the OP was banned. oh well :p
     
    tacopalypse, Jan 11, 2011 IP