2011-11-28 5 views
2

좀 라디오 버튼이 나는 또한 예상대로Buttonset 작동하지 않음으로 라디오

<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> 

그리고 내 라디오 버튼은 버튼으로 렌더링되지 않은 머리에이 코드를

<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> 

을, 즉있다.

무엇이 누락 되었습니까? 자원을 추가 @의 soderslatt의 제안은 내가이 enter image description here

답변

2
+0

만 JQuery와 UI를 CSS를 포함 얻을 후

이 jsfiddle 페이지

http://jsfiddle.net/jd3Km/1/ 작동하지 그것의 예를 가지고 큰 버튼처럼 보이는 div의 맨 위에 표시되도록 라디오 버튼을 변경합니다. 예상대로 여기가 아닙니다 http://docs.jquery.com/UI/Button –

+4

buttonset()을 호출하고 레이블을 입력에 연결하면 수정됩니다. http://jsfiddle.net/jd3Km/18/ – anderssonola

관련 문제