multiple select box problem

    Date: 07/13/05 (Javascript Community)    Keywords: php, java

    I have a multiple select box problem.



    Is there a way to use javascript to select one or more of the options? That is, to hightlight them as if the user clicked on them with the mouse.

    The name of the box has to have a [] on the end, since I'm passing this to PHP, and it's gotta be named like an array in order to pass all of the information (which options the user has selected.)

    document.addPost.relatedFiles[0].options[0].selected doesn't work, neither does document.addPost.relatedFiles.options[0].selected.

    Source: http://www.livejournal.com/community/javascript/71141.html

« Modifying values between forms || to print or not to print. »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home