私はいくつかのラジオボタンを持っています
<div class="buttonset">
<input name="radio12" type="radio" class="" id="radio5" />
<label class="yesno">Yes</label>
<input name="radio12" type="radio" class="" id="radio6" />
<label class="yesno">No</label>
</div>
私も頭の中にこのコードを持っています
<link rel="stylesheet" ref="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-darkness/jquery-ui.css" type="text/css" media="all" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
<script>
$(document).ready(function() {
$(".buttonset").buttonset();
alert ("Buttons created");
});
</script>
また、ラジオ ボタンが期待どおりにボタンとしてレンダリングされません。
私は何が欠けていますか?
この jsfiddle ページには、動作しない例がありますhttp://jsfiddle.net/jd3Km/1/
リソースを追加するという@soderslattの提案の後、私はこれを取得します