how to make a textbox readonly using CSS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dilipkp
    New Member
    • Mar 2007
    • 1

    how to make a textbox readonly using CSS

    hi all,
    actually i want to make a textbox readonly...
    dynamically i want to change the textbox readonly and editable..
    so is there any way i can specify in the style, this readonly property, and can change the style dynamically.

    actually i need to specify like

    .textboxstyle
    {
    readonly: true;
    }

    but this wont work... :(


    Anybody pls help me... :(
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    to dynamically change it I suspect you will need to incorporate some javascript code. But I don't know how myself. Since this is really DHTML ask in that forum.

    Comment

    Working...