Ich habe seit Stunden gekämpft, um einen Bootstrap-Radio-Button mit jquery setzen.jquery Bootstrap-Optionsfeld ändern
Kann mir jemand helfen, was ich falsch mache, unten ist eine Geige, die meinen Code zeigt.
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-xs btn-default active">
<input type="radio" name="xx" value="">
<span class="glyphicon glyphicon-unchecked"></span>
</label>
<label class="btn btn-xs btn-default">
<input type="radio" name="xx" value="is">
<span class="glyphicon glyphicon-ok"></span>
</label>
<label class="btn btn-xs btn-default">
<input type="radio" name="xx" value="not">
<span class="glyphicon glyphicon-remove"></span>
</label>
</div>
jQuery(function($) {
$('input:radio[name="xx"][value="is"]').prop("checked", true);
});