How 2 "Select all" values in a dynamically filled

Results 1 to 3 of 3

Thread: How 2 "Select all" values in a dynamically filled

  1. #1
    Vegar Guest

    Default How 2 "Select all" values in a dynamically filled

    I have a dynamically filled listbox, and from that listbox I need to select one or more lines. As my list of options grow bigger I find it more and more time-consuming to "select all", since I have to use ctrl or shift + click to do so (ctrl+A will not work).<BR>So I was wondering if anyone knows of any way to add a button that will do that work for me, or in any other way "select all" from my listbox.<BR><BR>I&#039;ll be happy for any help!

  2. #2
    Join Date
    Dec 1969

    Default RE: How 2

    ...<BR>function test1(){<BR> for (i=0;i&#060;document.MyForm.Quantity.length;i++){< BR> document.MyForm.Quantity[i].selectedIndex = 1;<BR> }<BR>}<BR>...<BR><BR>&#060;SELECT&#062; tag must have the word multiple in it.

  3. #3
    Vegar Guest

    Default RE: How 2

    Altough it looks as if it ought to work, I cannot quite make it do so.. :-( Maybe I&#039;m doing someting wrong... like do I have to refresh the page? Could you please be more specific?... <BR><BR>Thanx in advance! :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts