title: How to add specific id on radio button click function?
body: <p>I want to add specific id on radio button click function because I have 2 radio button divs. This is my current code : </p>
  
  <p><strong>HTML</strong> </p>
  
  <pre><code>&lt;div id="radioGroup1" style="font-size:1em;"&gt;
    &lt;input type="radio" name="chooseBentukUsaha" id='chkperseorangan' value="Perseorangan" class="radiobentukusaha" checked&gt; Perseorangan &amp;nbsp;
    &lt;input type="radio" name="chooseBentukUsaha" id='chkpt' value="checkGroup" class="radiobentukusaha"&gt; PT &amp;nbsp;
    &lt;input type="radio" name="chooseBentukUsaha" id='chkcv' value="CV" class="radiobentukusaha"&gt; CV &amp;nbsp;
  &lt;/div&gt;
  
  &lt;div id="radioGroup2" style="font-size:0.8em;"&gt;
     &lt;input type="radio" name="choose" id='chkusaha' value="Pengembangan Usaha" class="radiopurpose" checked&gt; Modal Usaha &amp;nbsp;
     &lt;input type="radio" name="choose" id='chkpengembangan' value="Pengembangan Usaha" class="radiopurpose"&gt; Pengembangan Usaha &amp;nbsp;
     &lt;input type="radio" name="choose" id='chkstartup' value="Start Up" class="radiopurpose"&gt; Penambahan Stok &amp;nbsp;
     &lt;input type="radio" name="choose" id='chklain' value="Lain-lain" class="radiopurpose"&gt; Ekspansi &amp;nbsp;
     &lt;input type="radio" name="choose" id='chklain' value="Lain-lain" class="radiopurpose"&gt; Lain-lain &amp;nbsp;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>My current jquery</strong></p>
  
  <pre><code>$('input[type="radio"]').click(function() {
       var inputValue = $(this).attr("value");
       var targetBox = $("." + inputValue);
       $(".box").not(targetBox).hide();
       $(targetBox).show();
  });
  </code></pre>
  
  <p><strong>What I have tried</strong></p>
  
  <pre><code>$('input[type="radio",id="radioGroup1"]').click(function() {
       var inputValue = $(this).attr("value");
       var targetBox = $("." + inputValue);
       $(".box").not(targetBox).hide();
       $(targetBox).show();
  });
  </code></pre>