The input box contains predefined values with unique IDs or generates them based on certain rules.
Here is the HTML code:
<input class="box" type="text" style="width:8%; text-align:center" id="a" value="A" readonly="true"/>
<input class="box" type="text" style="width:8%; text-align:center" id="b" value="B" readonly="true"/>
<input class="box" type="text" style="width:8%; text-align:center" id="c" value="C" readonly="true"/>
<input class="box" type="text" style="width:8%; text-align:center" id="d" value="D" readonly="true"/>
<input class="box" type="text" style="width:8%; text-align:center" id="e" value="E" readonly="true"/>
If there is a need to decrease the width from 8% to 6%, manually changing it for each element can be tedious. Is there a more efficient way, such as using a loop, to make this adjustment?