469,600 Members | 2,617 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

Enable textbox

121 100+
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)
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('<%= ABC.ClientID %>').disable = false; 
where ABC is TextBox ID (ASP.Net)

Any help will be appreciated.

Regards
Jay
Oct 26 '10 #1

✓ answered by jay123

Sorry my mistake, sorted.

it should be

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('<%= ABC.ClientID %>').disabled = false;
Should be 'disabled' instead of 'disable'

1 1780
jay123
121 100+
Sorry my mistake, sorted.

it should be

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('<%= ABC.ClientID %>').disabled = false;
Should be 'disabled' instead of 'disable'
Oct 26 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Steve | last post: by
2 posts views Thread by teddy.am | last post: by
3 posts views Thread by lolodede | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.