JSFiddle - React, Tailwind, and code Playground
HTML
<ul id="arealist">
<li><input type ="checkbox" id="1" value="1" /> All</li>
<li><input type ="checkbox" id="2" value="2" /> some</li>
<li><input type ="checkbox" id="3" value="3" /> heavy</li>
<li><input type ="checkbox" id="4" value="4" /> more</li>
<li><input type ="checkbox" id="5" value="5" /> none</li>
</ul>
JavaScript
var areaname = 2;
$("#" + areaname).prop("checked", true);