HTML5 Form Validation Multiple checkboxes allow multiple not all -
i using html5 form validation, need either fieldset or @ least 1 box checked form validate. when use following code:
<input type="checkbox" id="category" required name="category" value="singer" class="smoothborder"> singer (solo) <input type="checkbox" id="category" required name="category" value="singerduo" class="smoothborder"> singer (duo) <input type="checkbox" id="category" required name="category" value="band" class="smoothborder"> band
it forces user select checkboxes validate form, when may need check 1 or 2.
if change 'required name' 'name' user not forced check box, , need @ least 1 info required.
is there workaround without using javascript?
Comments
Post a Comment