I have a multiple select box that starts empty. I need an onClick event that adds an option to the select box (the user will be clicking on a text link) up to a maximum of three options. ============
Look into new Option(). The code below loops through an array called category and adds to a drop-down list called "options" each element in the array. Each array position is an object with two properties called "text" and "value". Hopefully this will point you in the right direction. for (var j = 0; j < category.length; j++) { options[j] = new Option(category[j].text, category[j].value); } -- Aidan Whitehall <[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 51775 ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]