#1
  1. PHP Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    Indianapolis, IN, USA
    Posts
    367
    Rep Power
    13

    javascript problem


    ok what i am trying to do is get the text out of the <option> tags.

    <option value="4">Level 2: insync</option>

    This is the current code I have right now. it gets the value just fine but I dont want the value.

    document.deleteform.id.options[deleteform.id.selectedIndex].value

    what would i replace .value with to get it to pull up what i want.

    Thanks in advance.
    Jon Whitcraft
    Web Applications Developer :: Zend Certified Engineer
    http://www.indianapolismotorspeedway.com/

    Originally said by Tyler Durden
    Our fathers were our models for God. If our fathers bailed, what does that tell you about God? Listen to me. You have to consider the possibility that God does not like you. He never wanted you. In all probability, he hates you. It's not the worst thing that can happen to you. We don't need him. **** damnation, man. **** redemption. We are God's unwanted children, SO BE IT! First you have to give up. First, you have to know, not fear, that someday, you're gonna die. It's only after we've lost everything that we're free to do anything.
  2. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    38
    .text
    Michael
  4. #3
  5. PHP Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    Indianapolis, IN, USA
    Posts
    367
    Rep Power
    13
    thanks, i just figured that out like 5 min ago...it's just one of them things that you dont remember then feel like major dork when you do.
    Jon Whitcraft
    Web Applications Developer :: Zend Certified Engineer
    http://www.indianapolismotorspeedway.com/

    Originally said by Tyler Durden
    Our fathers were our models for God. If our fathers bailed, what does that tell you about God? Listen to me. You have to consider the possibility that God does not like you. He never wanted you. In all probability, he hates you. It's not the worst thing that can happen to you. We don't need him. **** damnation, man. **** redemption. We are God's unwanted children, SO BE IT! First you have to give up. First, you have to know, not fear, that someday, you're gonna die. It's only after we've lost everything that we're free to do anything.
  6. #4
  7. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    38
    Been there, done that. If only all syntax was that logical.
    Michael

IMN logo majestic logo threadwatch logo seochat tools logo