Select Text from Combo

Results 1 to 2 of 2

Thread: Select Text from Combo

  1. #1
    Lynn Maharet Guest

    Default Select Text from Combo

    Hi all,<BR><BR>How do I capture the text of a combo box..that is when <BR>a user selects one.<BR><BR>I&#039ve tried sometin like this but it doesn&#039t works..<BR><BR> Sub cmbBidNo_onClick() <BR> sel=selBidForm.cmbBidNo.selectedIndex<BR> cap=selBidForm.cmbBidNo.getText(sel)<BR> alert cap<BR> End Sub<BR>&#039selBidForm is the form name<BR>&#039cmbBidNo is combo name<BR><BR>It gives me this error:<BR><BR>Object doesn&#039t support this property or method..<BR><BR>Thanks very much for ur help..;*<BR>

  2. #2
    BalletChick Guest

    Default RE: Select Text from Combo

    Try this:<BR><BR>cap = selBidForm.cmbBidNo.options[selBidForm.cmbBidNo.selectedIndex].value

Posting Permissions

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