Results 1 to 1 of 1

Thread: Help trying to get a line break between radio buttons

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2011
    Posts
    2

    Help trying to get a line break between radio buttons

    I tried using the search function, but the hour glass just stated as an hour glass for an hour so I gave up - sorry

    Code:
    Set MyRadio = CreateElement("input") 
     With MyRadio 
     .id = "ParentNodeKey" 
     Call .setAttribute("type", "radio") ' PR - The setAttribute() method adds a new attribute.  
     Call .setAttribute("name", "ParentNodeKey")             
     Call .setAttribute("value", CurNodeType.key)              
     End With
    However, the code does not write the name attribute to the 'MyRadio', thus, the code is useless and unclickable.
    If I Manually write within the input tag of the HTML code

    Code:
    name="ParentNodeKey"

    Then the radio buttons become clickable

    Therefore, how do I dynamically create radio buttons in VBS?

    Thanks,
    Tricia
    Last edited by scooble; Feb 7th, 2012 at 11:09 AM. Reason: correction

Posting Permissions

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



Click Here to Expand Forum to Full Width