Results 1 to 3 of 3

Thread: disabling forms

  1. #1
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation disabling forms

    Let's say I have the following code

    HTML Code:
    <html>
    <head>
    </head>
    <body>
    <table>
    <tr>
    <td>
    <SELECT>
    <OPTION>Powerbuilder Developer
    <OPTION>Database Administrator
    <OPTION>Visual Basic Developer
    <OPTION>Administration staff
    <OPTION>Janitor
    <OPTION>None of the above
    </SELECT>
    </td>
    <td>
    How do I condition that only one of the panes should be selected ? 
    <br>
    If I select the first how do I de-select the others 
    </td>
    <td>
    <SELECT>
    <OPTION>Powerbuilder Developer
    <OPTION>Database Administrator
    <OPTION>Visual Basic Developer
    <OPTION>Administration staff
    <OPTION>Janitor
    <OPTION>None of the above
    </SELECT>
    </td>
    </tr>
    </table>
    </body>
    </html>
    Among others this script might contain some other JavaScript.
    My question is how do I condition that only pane should be selected ?
    And in case both option 1 is selected and then option 2 is selected how do I deselect the 1st one ?

    Thanks in advance !
    Urgent !

  2. #2
    Join Date
    Dec 2006
    Posts
    47
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default

    <html>
    <head>
    </head>
    <body>
    <form>
    <SELECT onchange="document.forms[1].elements[0].disabled=true">
    <OPTION>Powerbuilder Developer
    <OPTION>Database Administrator
    <OPTION>Visual Basic Developer
    <OPTION>Administration staff
    <OPTION>Janitor
    <OPTION>None of the above
    </SELECT>
    </form>
    <form><SELECT>
    <OPTION>Powerbuilder Developer
    <OPTION>Database Administrator
    <OPTION>Visual Basic Developer
    <OPTION>Administration staff
    <OPTION>Janitor
    <OPTION>None of the above
    </SELECT>
    </form>
    </body>
    </html>

  3. #3
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you !

Bookmarks

Posting Permissions

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