CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Urgent : Disabling the contol in a Web Page

    Hi,
    I have four combo box controls in a Web Page.Based on the selection in one combo box, I want to disable
    the other controls.Using client side scripting,is it possible to do ? The values in the combo box
    controls are loaded at run time.
    Thanx in Advance.

    Regards,
    Kannan


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Urgent : Disabling the contol in a Web Page

    if your "combobox" is a HTML SELECT list:

    <select id="test">
    <option>hi</hi>
    </select>
    <input type=button onclick="test();">
    <script language=VBSCript>
    sub test
    document.all.test.disabled = true
    end sub
    </script>



    if it is a Combobox ActiveX control:
    yourcomboname.enabled = false


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

Featured