I want to change or remove asp RadioButton GroupName in Javascript.
<asp:RadioButton runat="server" ID="optbtnRight" Text="Right" GroupName="second"/>
I have this function.
function ddlColumnType_onchange(){
document.getElementById("<%=optbtnRight.ClientID %>").checked = false;
//Want set group here
}
I have call this on
<asp:DropDownList ID="ddlColumnType" runat="server" class="text small"
onchange="ddlColumnType_onchange()">
</asp:DropDownList>
Firstly I would suggest you to use html radio button with runat=”server” rather than asp radio button to let same javascript work in all the browsers without any issue as asp radio button gets rendered differently in different browsers
So the first thing would be
Replace this
With this
Then this should work for you
jQuery
JavaScript