Clear select box

Results 1 to 2 of 2

Thread: Clear select box

  1. #1
    Join Date
    Dec 1969

    Default Clear select box

    Hi all...<BR><BR>How do I clear the select box in client side script??<BR>i tried frmName.selBox="", frmName.selBox.value="" but not possible...<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Clear select box

    document.frmName.selBox.selectedIndex = 0;<BR><BR>You can&#039;t really "clear" a &#060;SELECT&#062;. You can only set it back to the default (top) selection.<BR><BR>

Posting Permissions

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