Results 1 to 6 of 6

Thread: Very Easy Html

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    Exclamation Very Easy Html

    I just need a code which will make a text box visable but blocked so a person can not edit info in it!!

    dpoes anyone know what this code will be?

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    add this as an attribute:
    Code:
    dissabled="dissabled"
    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139
    Originally posted by Acidic
    add this as an attribute:
    Code:
    dissabled="dissabled"

    how do i do that??


    Code:
    <input type="text" name="title" value="Test" size="94" style="border-style: solid; border-width: 1px" dissabled="dissabled">
    ???

  4. #4
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    well. I had a typo, it should have been:
    disabled="disabled"
    otherwise, yes.
    Have I helped you? Please Rate my posts.

  5. #5
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571

    hmm

    or you could use the read only attribute
    html:
    Code:
    <textarea readonly=readonly>you cannot edit me</textarea>
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Well it depends, the readonly attribute allows the user to focus the textbox (also with tab), which might confuse some users. So if you're disabling a certain textbox until another one is filled out for example, I think it's better to use disabled (so the user won't be confused).
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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