Hello,
I have RadComBox and RadTextBox.When radcombox contain value I need to disable radtextbox.The following is my code but not working:
I have RadComBox and RadTextBox.When radcombox contain value I need to disable radtextbox.The following is my code but not working:
<telerik:RadComboBox ID="ddlLocation" runat="server" Width="125px" Font-Size="Small" AutoPostBack="false" onchanged="JavaScript: return DisableBox();">
</telerik:RadComboBox>
</td>
<td>
<telerik:RadTextBox ID="LocTextBox" runat="server" Width="100px" MaxLength="4" ToolTip="Please enter 4 char Location" AutoPostBack="false">
</telerik:RadTextBox>
</td>
function
DisableBox()
{
var TextBox = $find("<%=LocTextBox.ClientID %>");
var Location = $find("<%=ddlLocation.ClientID %>");
if(Location.length > 0)
{
TextBox.disable();
return false;
}
}
Please help to resolve this issue.
Thanks so much