Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts

    disabling dropdown form element

    Hi there,

    I'm trying to disable a drop down list form element in javscript when a function is ran but dont know how to disable it...
    I tried:
    siteSelection.style.disable;
    But no much luck, was a guess.. says siteSelection is undefined.. siteSelection is the name and id of the drop down btw.

    Any ideas?
    Many thanks
    Sir P

  • #2
    Regular Coder
    Join Date
    Jun 2006
    Posts
    225
    Thanks
    6
    Thanked 3 Times in 3 Posts
    PHP Code:
    function disable()
    {
    document.getElementById("drop-down").disabled=true


  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    That did the trick good, thank you Strike


  •  

    Posting Permissions

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