Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Question about Form "Mulitple Select" elements

  • 31-07-2002 04:11PM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 14,174 ✭✭✭✭


    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