Enabling a control

Results 1 to 3 of 3

Thread: Enabling a control

  1. #1
    Join Date
    Dec 1969

    Default Enabling a control

    Hi,<BR><BR>I have a control that is disabled at design and after user enters mandatory fieds needs to be enabled. How do I establish this through either VBScript/JavaScript.<BR><BR>The below disables the button BUT....<BR>&#060;Input type="submit" name="btnCode" value="Accept" disabled&#062;<BR><BR>on the script using<BR>document.frmname.controlname.enable????? is not available.<BR><BR>Thanks<BR>GI<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default *ONLY* works with MSIE, but...

    document.frmname.controlname.disabled = false;<BR><BR>(The disabled property doesn&#039t even exist in other browsers.)<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Enabling a control

    You could use Javascript:<BR><BR>For the onfocus() event of the field, call a Javascript function which calls a field.blur() if the mandatory fields are empty.<BR><BR>Hope this helps<BR><BR>Cheers<BR>Santhosh<BR>santhosh_arvind @hotmail.com

Posting Permissions

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