0
zu setzen Ich versuche, den Wert einer Radiobuttonlist zu ändern. Ich habe zu viele Wege ausprobiert, aber ich kann die Lösung nicht finden.Versuchen, den Wert einer ASP-Radiobuttonlist mit jQuery
//this works perfectly to get the current value, and is the way that I saved on database,
$('[id$=rdoPropietario] input:checked').val()
Ich habe dies versucht, als alle diese
$('[id$=rdoPropietario] input:checked').val(["1"]);
Artikel zu deaktivieren, habe ich versucht,
$('[id$=rdoPropietario] input:checked').val(1);
dieses,
$('[id$=rdoPropietario input[type=radio][value='1']').prop("checked", true);
und dies,
$("[name$='rdoPropietario']").find("input[value='1']").prop("checked", true);
Dies ist die Struktur meines Element:
<div class="col-md-3 col-sm-6 col-xs-6">
<asp:RadioButtonList ID="rdoPropietario" runat="server" RepeatDirection="Horizontal" ViewStateMode="Enabled">
<asp:ListItem Selected="True" Value="0">N/A </asp:ListItem>
<asp:ListItem Value="1">Si </asp:ListItem>
<asp:ListItem Value="2">No </asp:ListItem>
</asp:RadioButtonList>
</div>