473,322 Members | 1,911 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Disable/enable Textbox 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
5 14184
shweta123
692 Expert 512MB
Hi,

Don't give any value for Disabled property.e.g. <Input type="Text" Disabled>
If you want to make the Textbox Enabled just dont give anything there.
Jan 17 '07 #2
Hi,

Don't give any value for Disabled property.e.g. <Input type="Text" Disabled>
If you want to make the Textbox Enabled just dont give anything there.

hi shweta123

yahh i already did that what i want to do is that when i click the button in my asp it will disable the previous active button and textboxes..But it seems that whatever propertyi work with wether it is disabled or enable regardless of value(true or false) it seems not accepting the value..tnkss hope you can help me..

metalwing
Jan 17 '07 #3
shweta123
692 Expert 512MB
Hi,

I am not getting where exactly its going wrong .You can try these lines
be4 making textbox or any control enabled or disabled.

for(i=0;i<form.elements.length;i++)
{
if(form.elements[i].disabled="false")
form.elements[i].disabled="true";
}

Shweta
Jan 18 '07 #4
Hi,

I am not getting where exactly its going wrong .You can try these lines
be4 making textbox or any control enabled or disabled.

for(i=0;i<form.elements.length;i++)
{
if(form.elements[i].disabled="false")
form.elements[i].disabled="true";
}

Shweta
hi

well what im trying to do is that i have 4 textboxes and buttons
the first textboxes and buttons is enable and the rest disabled.when i click the first button it will enable the second textbox and button while disabling the first textbox and button.
hope you can help me..

thanks and regards
metalwing
Jan 19 '07 #5
how about vbscript to enabled and disabled textbox outside of textbox control
like<% if session("Pwd")="" then textbox1.disabled=true end if%>
and also assign value to textbox outside of textbox control?
Sep 24 '08 #6

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

Similar topics

7
by: Michael | last post by:
I'm exploring how to programmatically disable/enable devices in a system using C#. -MH
2
by: metalwing12 | last post by:
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...
6
soramaster
by: soramaster | last post by:
How do I make it where something disabled until you put some kind of code in, S/N? Like on some program trials it will need a code to enable some buttons.functions,etc. On mine I want some...
3
by: Pietro | last post by:
Hi all, First of all I'd like to thank you very very much ,as finally after many years of searching,I could find a code to disable/enable the shift key,but actually i cannot use the code as I'm...
5
by: Zuhaib Hyder | last post by:
how ti disable aspnet textbox for prevent user input, but want to set value from javascript calendar at the moment it shows updated selected value from javascript calendar, but when i save data...
0
by: Alexander Vasilevsky | last post by:
Can to disable/enable smoothing font in the WPF? http://www.alvas.net - Audio tools for C# and VB.Net developers
10
by: viki1967 | last post by:
Disable/enable icon.gif Hi all. I have this form in the page.htm: <form action="form.asp" method="post" onsubmit="return(validateForm(this));"> <select size="1" name="t_im"...
1
AR Ratheesh
by: AR Ratheesh | last post by:
Hi, Please help me to disable / enable task manager and Explore for a internet Cafe management project. Thanks in advance..
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.