Problem with jquery.mobile-1.3.2.min.css when change radio checked

Problem with jquery.mobile-1.3.2.min.css when change radio checked

I have this problem with this code it works but if I put label does not work any advice?

This code work
  1. <script>
    
    function seleziona(idradiochk) {    
    $("#"+idradiochk).attr('checked',true);
    
    };
    
    </script>
    
    
    <fieldset data-role="controlgroup">
    <input type='radio' name='radiocam' id='radiochoice2525' value='2525' />
    <input type='radio' name='radiocam' id='radiochoice2524' value='2524' />
    <input type='radio' name='radiocam' id='XXradio-choice-1066' value='XX1066' />
    </fieldset>
    
    <a onclick="seleziona('radiochoice2525');">clicca</a>
     
This code does not work
  1. <script>
    
    function seleziona(idradiochk) {    
    $("#"+idradiochk).attr('checked',true);
    
    };
    
    </script>
    
    <fieldset data-role="controlgroup">
    <input type='radio' name='radiocam' id='radiochoice2525' value='2525' />
  2. <label  for='radiochoice2525'>a</label>
    <input type='radio' name='radiocam' id='radiochoice2524' value='2524' />
  3. <label  for='radiochoice2524'>b</label>
    <input type='radio' name='radiocam' id='XXradio-choice-1066' value='XX1066' />
  4. <label for='XXradio-choice-1066'>c</label>
    <input type="radio" name="radiocam" id="radiocam2"  checked="checked" value="0"  />
  5. <label for="radiocam2">d</label>
    </fieldset>
    
    
    <a onclick="seleziona('radiochoice2525');">clicca</a>
When I click the code should select the radio button with id = radiochoice2525 but without label tag or without jquery.mobile-1.3.2.min.css work ... whit jquery.mobile-1.3.2.min.css not work... any idea how to solve?
thanks