@locustjs/forms demo

Checkbox & Radio buttons
Different methods to use checkbox and radio buttons in forms.
Part time: <input type="checkbox" name="jobType" value="1" />
Full time: <input type="checkbox" name="jobType" value="2" />
Remote: <input type="checkbox" name="jobType" value="3" />
name, with value
Weekly: <input type="checkbox" name="payment" />
Monthly: <input type="checkbox" name="payment" />
Annually: <input type="checkbox" name="payment" />
name, no value
News: <input type="checkbox" id="subscriptionNews" />
Updates: <input type="checkbox" id="subscriptionUpdates" />
Blogs: <input type="checkbox" id="subscriptionBlogs" />
id, no value
Info: <input type="checkbox" id="stateInfo" value="1" />
Debug: <input type="checkbox" id="stateDebug" value="2" />
Danger: <input type="checkbox" id="stateDanger" value="3" />
id, with value
Yes: <input type="radio" name="agree" value="true" />
No: <input type="radio" name="agree" value="false" />
name, value