Buttonset不使用收音机

时间:2011-11-28 03:39:22

标签: jquery-ui jquery-ui-button

我有一些单选按钮,即

<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关于添加资源的建议之后我得到了这个 enter image description here

1 个答案:

答案 0 :(得分:2)

包括jquery ui css

http://jsfiddle.net/jd3Km/5/

相关问题