Clearing a Select List

Results 1 to 2 of 2

Thread: Clearing a Select List

  1. #1
    Rob Guest

    Default Clearing a Select List

    Is there a javascript command that will clear the contents of a select list?<BR>like document.frm.make.options.clear()<BR>or something?<BR><BR>This is for a dynamic list built of another.<BR><BR>Thanks,<BR><BR>Rob

  2. #2
    Join Date
    Dec 1969

    Default RE: Clearing a Select List

    set length to zero<BR><BR>document.forms[form].elements[select].options.length = 0<BR><BR>won&#039t work in netscape<BR><BR>j

Posting Permissions

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