Any Ideas?

Discussion in 'JavaScript' started by CoLorZz, Nov 30, 2012.

  1. #1
    Ok.. so i am building a email sending part of a shcool website and i am stuck i can get it to send it to a certain persong with a dropdown menu assigned but i cant get the subject line or the body to send and idk what to do.PLEASE GET BACK TO ME ASAP!
    
    function myFunct() {
    var a = document.getElementById("thedropdown");
    var b = document.getElementById("ject");
    document.location.href = "mailto:" + (a.options[a.selectedIndex].value) + "?subject=" + ject.Value
    }
    
    HTML:

     
    CoLorZz, Nov 30, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    What is ject? A textbox? A dropdown?
     
    Rukbat, Dec 1, 2012 IP