HTML input checkbox


<label> <input name="fruit" type="checkbox" value="orange" /> Orange</label>
<label> <input name="fruit" type="checkbox" value="apple" checked /> Apple</label>
<label> <input name="fruit" type="checkbox" value="banana" /> Banana</label>

type must be "checkbox"

checked indicate default selected value

name of the multi-select checkbox must have the same value

Result :




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook