Results 1 to 7 of 7

Thread: the disabled attribute in XHTML [resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    the disabled attribute in XHTML [resolved]

    I've used JS to change the disabled attribute quite a bit. I use disabled="disabled" to disable something and disabled="" to enable it. I found that MSDN says you should use true/false, but then this page on the W3C says you should use what I use for dissabling them. I tried setting disabled="" and disabled="false" and disabled="enabled". None of these were allowed by XHTML1.0 Strict or transitional. What's the right way of doing this? I realise that you can simple leave out the attribute, but when changing it wil JS what should you set it to?
    Last edited by Acidic; Sep 2nd, 2004 at 04:06 PM.
    Have I helped you? Please Rate my posts.

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