Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Question about Form "Mulitple Select" elements

Options
  • 31-07-2002 4:11pm
    #1
    Registered Users Posts: 14,148 ✭✭✭✭


    Hey guys,

    I wonder does anyone know how to recognise <select multiple> element input?

    Eg.
    <select name="blah" size=3 multiple onChange="functionName(options[selectedIndex].value)">
     <option value="" selected>None Selected</option>
     <option value="1">Num. 1</option>
     <option value="2">Num. 2</option>
     <option value="3">Num. 3</option>
    </select>
    


    Now .. the information being passed to the function "functionName()", always appears to be the first selected index item. How do I get it to recognise multiple entries?


Advertisement