Making a list read-only

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • vaury

    #1

    Making a list read-only

    I'm having difficulty making a list (both drop down and radio button) read
    only; I am successful when I attempt to make a text field read only. Any
    suggestions on what java script I use to accomplish this? Thanks.

  • Martin Honnen

    #2
    Re: Making a list read-only



    vaury wrote:
    [color=blue]
    > I'm having difficulty making a list (both drop down and radio button) read
    > only; I am successful when I attempt to make a text field read only. Any
    > suggestions on what java script I use to accomplish this?[/color]

    As you can't enter a value for a select you can't make it readonly but
    you can disable it e.g.
    selectElement.d isabled = true


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    Working...