チェックボックスがチェックされ、デフォルトの不透明度が0.5(半分の不透明度)に設定されたら、チェックボックスの画像の不透明度を1.0(通常の不透明度)に変更したい。しかし、JavaScript と CSS のコーディングについてはまったくわかりません。
<input type="checkbox" id="n1" name="n1" style="display: none;" /><label for="n1"><img src="images/n1.png" width="20" height="20" /></label>
<input type="checkbox" id="n2" name="n2" style="display: none;" /><label for="n2"><img src="images/n2.png" width="20" height="20" /></label>
...
<input type="checkbox" id="n50" name="n50" style="display: none;" /><label for="n2"><img src="images/n50.png" width="20" height="20" /></label>