1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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