Hi, I am trying to hide a label when a checkbox is unhecked. I am trying to do this using javascript within a vb.net code behind page. I keep getting a syntax error and don't know where to make the changes.
Here is my sample code
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
chbShowHide.Attributes.Add("onClick", String.Format("javascript:showHide(this,'{0}')", txtShowHide.ClientID))
End Sub
Please help.
Thanks
Here is my sample code
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
chbShowHide.Attributes.Add("onClick", String.Format("javascript:showHide(this,'{0}')", txtShowHide.ClientID))
End Sub
Please help.
Thanks