Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

Protect the label

Hi,
what is the way to protect the label below?

<input type="label" id="lb_p1" style="height:14px; width:92px; font-size:x-small; border:none; background-color:#1BA8E0" value="desc1" runat="server" /><br/>

Open in new window

Avatar of KNVB HK
KNVB HK
Flag of Hong Kong image

What do you mean "protect"?
Avatar of Peter Chan

ASKER

Make it non-editable.
Labels are not editable by default unlike a textbox that is editable, so I don't understand your question
Just add disabled to the attributes. and it will not accept input.

Cd&
COBOL,
how to add "disabled"?
ASKER CERTIFIED SOLUTION
Avatar of Kelvin McDaniel
Kelvin McDaniel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah label is not valid but that just means the browser will default to text. As fo adding disabled you just put it in the tag with the rest of the attributes.  No offense intended, but is this your first attempt at HTML?

Cd&