Enable textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jay123
    New Member
    • Sep 2008
    • 121

    Enable textbox

    Hello,
    I have a page when user submits data, all the textboxes gets disabled, but after clicking Save (saving data). User is retained on that page and edit button comes up.

    As on click of Save, all the textboxes were Disabled. Now what i want is when user clicks on Edit button, all the Textboxes are enabled again.

    i am using this code (doesnt work)
    Code:
    document.getElementById('<%= ABC.ClientID %>').disable = false;
    where ABC is TextBox ID (ASP.Net)

    Any help will be appreciated.

    Regards
    Jay
  • jay123
    New Member
    • Sep 2008
    • 121

    #2
    Sorry my mistake, sorted.

    it should be

    Code:
    document.getElementById('<%= ABC.ClientID %>').disabled = false;
    Should be 'disabled' instead of 'disable'

    Comment

    Working...