title: How to show a textbox and dropdown when a radiobutton when is checked using jquery?
body: <p>Hi all i have some radio buttons and text boxes corresponding to each radio button..what i want to do is when an radio button is checked show the corresponding textbox from the following format..</p>
  
  <pre><code>        @foreach(var item in Viewbag.Ids)
          {
           &lt;div class="group"&gt;
            &lt;label class="label"&gt;
             @Html.RadioButton("Rdbtn",new{value=@item.value})
            &lt;/label&gt;
              &lt;div class="control"&gt;
                    &lt;input type="text"  /&gt;
              &lt;div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>in another case </p>
  
  <pre><code>       &lt;div&gt;
          @Html.RadioButtonFor(m=&gt;m.IsFlat)
          @Html.RadioButtonFor(m=&gt;m.IsFree)
          @Html.RadioButtonFor(m=&gt;m.IsTax)
          @Html.DropDownListFor(m=&gt;m.Products)
         &lt;/div&gt;
  </code></pre>
  
  <p>what am i doing for the above only one of the radio button has to be checked when one is checked the other should be unchecked i am doing it like this</p>
  
  <pre><code>   $('input[type=radio]').change( function(){
      if(this.checked)
          {
                    $(this).closest('div').find('input[type=radio]').not(this).attr('checked',false)
          }
       }); 
  </code></pre>
  
  <p>this is working fine and i want to dsiplay the  dropdwon when an "  @Html.RadioButtonFor(m=>m.IsTax)" is checked how can i do this and i have to get the radio button checked in edit mode if it is checked can any one help me in doing this</p>