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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -