469,955 Members | 2,090 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Asp Disable/enable Textboxes And Buttons

Hi guys
can someone kindly help me about my code it seems incomplete or i just can make it right .I try using the disabled property of the textbox yes it workss, it disable it but when i set it to false like disabled="false" it does not enable the textbox.This is my code



<p><input type="text" name="txtbox1" size="20" disabled="true">
<input type="button" value="Click" name="B3" disabled="true"> Operator</p>
<p><input type="text" name="txtbox2" size="20"disabled="false">
<input type="button" value="Click" name="B4" disabled="false"> Supervisor</p>


thanks and regards
metalwing
Jan 17 '07 #1
2 1512
The correct code is:
<input type="text" name="txtbox1" size="20" disabled="disabled">
Or just
<input type="text" name="txtbox1" size="20" disabled>

if you want to enable it simple remove the disabled attribute like this:
<input type="text" name="txtbox1" size="20">

Hi guys
can someone kindly help me about my code it seems incomplete or i just can make it right .I try using the disabled property of the textbox yes it workss, it disable it but when i set it to false like disabled="false" it does not enable the textbox.This is my code



<p><input type="text" name="txtbox1" size="20" disabled="true">
<input type="button" value="Click" name="B3" disabled="true"> Operator</p>
<p><input type="text" name="txtbox2" size="20"disabled="false">
<input type="button" value="Click" name="B4" disabled="false"> Supervisor</p>


thanks and regards
metalwing
Jan 17 '07 #2
The correct code is:
<input type="text" name="txtbox1" size="20" disabled="disabled">
Or just
<input type="text" name="txtbox1" size="20" disabled>

if you want to enable it simple remove the disabled attribute like this:
<input type="text" name="txtbox1" size="20">


hi wardenz

well ill try it later..ill pm you whats the result thankss..
Jan 17 '07 #3

Post your reply

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

Similar topics

7 posts views Thread by Randy | last post: by
4 posts views Thread by tshad | last post: by
1 post views Thread by inadsad | last post: by
6 posts views Thread by Brandon McCombs | last post: by
3 posts views Thread by =?Utf-8?B?UGxhdGVyaW90?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.