2017-05-17 2 views
1

나는이 코드에서 여러 날을 사용해 봤지만 아직 결과를 얻지 못했습니다. 같은 이름을 가진 목록에 라디오 버튼을 넣었습니다. 단추를 클릭하려고 할 때 수표가 보이지 않습니다. 전체 코드는 다음과 같습니다라디오 버튼이 목록에 체크 표시가 나타나지 않습니다.

<form> 
    <ul class="nav nav-pills"> 
     <li class="active choice-option"> 
      <a href="#account" value='1' data-toggle="tab">This is a General Inquiry or you need Assistance 
       <span class="pull-right"> 
        <!--?= Html::radio('type', true); ?--> 
        <input type="radio" name="type" class="radio_showed" value='1' checked> 
       </span> 
      </a> 
     </li> 
     <li class="choice-option"> 
      <a href="#company" data-toggle="tab">You have a Technical Issue and need to open a ticket 
       <span class="pull-right"> 
        <!--?= Html::radio('type', true); ?--> 
        <input type="radio" name="type" class="radio_showed" value='1' > 
       </span> 
      </a> 
     </li> 
    </ul> 
</form> 
+0

당신이 무엇을 의미합니까 영향을 체크 표시 ". 당신은 코드 anythign 정상적으로 작동합니다 –

+0

사실 나는 DB에 숨겨진 양식을 통해 데이터를 저장 해요. 하지만이 라디오 필드를 클릭하면 아무 라디오 체크도 보이지 않습니다. 이전에 나는 yii2 html 헬퍼 라디오를 사용해 보았습니다. 나는 거기에서도 같은 결과를 얻었다. – rehan

답변

0

id를 라디오 버튼에 입력하고 텍스트에 label 태그를 입력해야합니다.

아래 코드를 시도하십시오.

<form> 
    <ul class="nav nav-pills"> 
     <li class="active choice-option"> 
      <a href="#account" value='1' data-toggle="tab"><label for="radio1">This is a General Inquiry or you need Assistance</label> 
       <span class="pull-right"> 
        <!--?= Html::radio('type', true); ?--> 
        <input type="radio" name="type" class="radio_showed" value='1' id="radio1" checked> 
       </span> 
      </a> 
     </li> 
     <li class="choice-option"> 
      <a href="#company" data-toggle="tab"><label for="radio2">You have a Technical Issue and need to open a ticket</label> 
       <span class="pull-right"> 
        <!--?= Html::radio('type', true); ?--> 
        <input type="radio" name="type" class="radio_showed" id="radio2" value='1' > 
       </span> 
      </a> 
     </li> 
    </ul> 
</form> 
0

나는 문제가 당신의 라디오 버튼이 경우

<form> 
<ul class="nav nav-pills"> 
    <li class="active choice-option"> 
     <a href="#account" value='1' data-toggle="tab">This is a General Inquiry or you need Assistance</a> 
      <span class="pull-right"> 
       <!--?= Html::radio('type', true); ?--> 
       <input type="radio" name="type" class="radio_showed" value='1' checked> 
      </span> 

    </li> 
    <li class="choice-option"> 
     <a href="#company" data-toggle="tab">You have a Technical Issue and need to open a ticket</a> 
      <span class="pull-right"> 
       <!--?= Html::radio('type', true); ?--> 
       <input type="radio" name="type" class="radio_showed" value='1' > 
      </span> 

    </li> 
</ul> 

가, 라디오 버튼이 작동 앵커 태그의 내부에있는 생각하지만, "당신의 스타일

관련 문제