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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    SWEDEN
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    disable a textfield

    If your script program sends a value to a text field (on a buttonclick for an example) it's still possible for the user to enter different things on the same field so to speak " from the outside" How do one make a textfield disabled from anything else than the program itself ?

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    USA
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <input type="text" disabled="disabled" readonly="readonly" />

    Neither of these attributes are well-supported in older browsers, but they should do the trick.


  •  

    Posting Permissions

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