Could someone please help me in regards to a simple javascript problem i am having.  I 
have a select box that has the multiple option activated.  When the user submits the 
form i need to check that a value has been selected in the select box.  I have been 
able to do this with a normal select box not when the multiple option is available.

Here is what i have so far,  i just cant get it to work.

Any feedback welcome.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

if   
(document.frmSendMsg.Destination.options[document.frmSendMsg.Destination.selectedIndex].value
 == -1) {
        alert ('Please select a recipient for the message');
        document.frmSendMsg.Destination.focus();
        return false;
    }
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to