Mine
public javascript v1 · immutablefunction checkShipping() { shippingLength = document.shippingForm.shipping.length; for (i=0; shippingLength > i; i++) { if (document.shippingForm.shipping[i].checked == true) { return true; } else { alert('Please select a shipping method for your order.'); return false; } }