다음 중 하나를 선택하는 방법을 알고 싶습니다. 내 양식에 다음과 같은 확인란이 있습니다. 이름 중 하나를 선택하지 않고 확인합니다.값을 확인 중입니다
<label for="branding">Branding
<input type="checkbox" name="branding" id="branding" class="checkbox" /></label>
<label for="print">Print
<input type="checkbox" name="print" id="print" class="checkbox" /></label>
<label for="website">Website
<input type="checkbox" name="website" id="website" class="checkbox" /></label>
<label for="other">Other
<input type="checkbox" name="other" id="other" /></label>
정수 대신 부울을 사용하거나 if (this || that || foo || bar) {} 왜 양식을 다시 쓸 수 없습니까? – Emyr
이 코드를 사용하면 로그 파일에 많은 경고가 나타납니다. – Yacoby