JSFiddle - React, Tailwind, and code Playground
HTML
<SPAN title=suffisant class=ms-RadioText><INPUT name=ctl00$m$g_4ba4f0c0_02f9_483a_9e14_dccc503f153f$ff131$ctl00$RadioButtons id=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl00 type=radio value=ctl00><LABEL style="DISPLAY: none" for=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl00 jQuery17108975344609091436="5">suffisant</LABEL><SPAN title="plutôt insuffisant" class=ms-RadioText><INPUT name=ctl00$m$g_4ba4f0c0_02f9_483a_9e14_dccc503f153f$ff131$ctl00$RadioButtons id=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl01 type=radio CHECKED value=ctl01><LABEL style="DISPLAY: none" for=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl01 jQuery17108975344609091436="6">plutôt insuffisant</LABEL></SPAN><SPAN title=insuffisant class=ms-RadioText><INPUT name=ctl00$m$g_4ba4f0c0_02f9_483a_9e14_dccc503f153f$ff131$ctl00$RadioButtons id=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl02 type=radio value=ctl02><LABEL style="DISPLAY: none" for=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl02 jQuery17108975344609091436="7">insuffisant</LABEL></SPAN><SPAN title="non applicable" class=ms-RadioText><INPUT name=ctl00$m$g_4ba4f0c0_02f9_483a_9e14_dccc503f153f$ff131$ctl00$RadioButtons id=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl03 type=radio value=ctl03><LABEL style="DISPLAY: none" for=ctl00_m_g_4ba4f0c0_02f9_483a_9e14_dccc503f153f_ff131_ctl00_ctl03 jQuery17108975344609091436="8">non applicable</LABEL></SPAN></SPAN>
<div id="result">
<span id="TS"></span>
<span id="S"></span>
<span id="I"></span>
<span id="TI"></span>
</div>
JavaScript
var rep= {"ctl00": 0,"ctl01": 1,"ctl02": 0,"ctl03": 0};
$(function() {
update_result();
$('input[type=radio]').mousedown(function(){
var radio = $(this).prop("name");
if($("input[name='"+radio+"']:checked").length != 0) {
var old_val = $("input[name='"+radio+"']:checked").val();
rep[old_val]--;
}
}).change(function() {
var radio = $(this).prop("name");
console.log($("input[name='"+radio+"']:checked"));
var new_val = $("input[name='"+radio+"']:checked").val()
rep[new_val]++;
update_result()
});
})
function update_result() {
$("#TS").empty().html(rep["ctl00"]);
$("#S").empty().html(rep["ctl01"]);
$("#I").empty().html(rep["ctl02"]);
$("#TI").empty().html(rep["ctl03"]);
}