The code is as follows, both the codebehind and the designer, the idea is to change the h3 text when changing the radiobutton selection, but it does not execute the jquery code, the text remains in Add New Product/Service and does not change to Disassociate Product /Service
protected void rdasounoauno_CheckedChanged(object sender, EventArgs e)
{
string script = "cambiatexto();";
ScriptManager.RegisterStartupScript(this, typeof(Page), "F1", script, true);
}
<div class="panel panel-primary">
<div class="panel-heading" >
<h3 class="panel-title" id="panelconteasocia">
Agregar Nuevo Producto/Servicio
</h3>
</div>
</div>
<script language="javascript" type="text/javascript">
function cambiatexto() {
$("#panelconteasocia").text = "Desasociar Producto/Servicio";
}
</script>
Your problem is here:
In jQuery, the text is changed like this: