Click here to Skip to main content
15,896,421 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'have developed a web page in front page and using javascript and vb script language and database in MS acess .

i want to disable the label control when the text control is empty means when database field is NULL/Empty then its label become disable


XML
<b>Plant name :</b> <i><%=rs1("plantname")%></i><br>
<br />

<b>Trade name :</b>  <%=rs1("tradename")%><br>




this is my code and i want to disable the Plant name in web page when database record field (plantname) is null/empty
Posted
Updated 3-Jul-12 20:48pm
v2

1 solution

JavaScript
if(document.getElementById('textbox1').value='')
{
document.getElementById('label1').enabled=false;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900