dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: input type text and css

  1. #1
    Join Date
    Nov 2006
    Posts
    113

    Question input type text and css

    Hi,

    on my form i have several input type texts.
    at the beginning all are disabled and i would like to give then a special look (in fact i would like to make then not look like input type field).
    therefore i was thinking to set the border to 0 and so on...

    however, close to each field i have a button on which customer can click.
    if user clicks on the button the input field should become editable and his style should turn to another css style.
    how can i link 2 styles to a field according to status disable/enable ?
    thanks a lot,

    A.

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    change the class name using javascript when you enable the field and have two different classes in your stylesheet, enabled and disabled for example.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles