hey here is my coding
//javascript
function Enabledtxt()
{
if(document.frmNewsCreation.chkScrollNews.checked)
{
alert("true");
document.frmNewsCreation.txtScrollSpeed.enabled=true;
document.frmNewsCreation.txtScrollSpeed.focus();
}
else
{
alert("false");
document.frmNewsCreation.txtScrollSpeed.enabled=false;
}
return true;
}
//html
<asp:CheckBox ID="chkScrollNews" runat="server" Text="(Yes/No)" TabIndex="13"/>
<asp:TextBox ID="txtScrollSpeed" runat="server" CssClass="tbox" onblur="BLOCKED SCRIPTeBlur(this);"
onfocus="BLOCKED SCRIPTeFocus(this);" size="35" Width="50px" MaxLength="1" TabIndex="14" ></asp:TextBox>
//codebehind in c#
this.chkScrollNews.Attributes.Add("Onclick", "if(!Enabledtxt()) {return false;}");
but still not getting it
Enter your message below
Sign in or Join us (it's free).