Simple Question

Results 1 to 2 of 2

Thread: Simple Question

  1. #1
    Join Date
    Dec 1969

    Default Simple Question

    I am more familiar with Javascript, but for this particular project I am doing, I have to use VBSCript. I am trying to set a radio button "checked" property to false when something else is selected. Here is the code snippet<BR><BR>If document.Form1.lstStandardReports.selectedIndex &#060;&#062; -1 Then <BR>document.Form1.radInclude.checked = false<BR>End If<BR><BR>It is telling me "Object does not support this property or method &#039;document.Form1.radInclude.checked&#039;"<BR> <BR>What am i doing wrong??? Im using Visual Interdev, and it brings up the properties and methods for me, so why would it let me chose from the list of properties and methods if it didnt exist????

  2. #2
    Join Date
    Dec 1969

    Default RE: Simple Question

    Probably because it&#039;s an array of radio buttons, not one radio button.<BR><BR>Try:<BR>document.Form1.radInclude[0].checked = false;<BR><BR>Craig.

Posting Permissions

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