VBScriptFor questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I am unable to find a VBScript example of how to disable an HTML form field. Below is is a line of code I've tried to translate from JavaScript. It doesn't seem to generate any errors but neither does it disable the radio buttons associated with the field name. What is wrong with it?
frmSurvey.fldAnswer5.Disabled=false
fldAnswer5 is the NAME attribute on two radio buttons. Neither button is disabled when this script is executed.