It does not put the js in the radiobutton. It puts it in the table???? Look at the code below page load: rbSendWhen.Attributes.Add("onChange", "javascript:changed(this)"); <asp:RadioButtonList ID="rbSendWhen"< ...