Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Give each of the radio and checkbox inputs the value attribute. Use the input label text, in lowercase, as the value for the attribute.

    <label><input type="radio" name="indoor-outdoor"  value="indoor"> Indoor</label>
    <label><input type="radio" name="indoor-outdoor"  value="outdoor"> Outdoor</label><br>
    <label><input type="checkbox" name="personality"  value="loving"> Loving</label>
    <label><input type="checkbox" name="personality"  value="lazy"> Lazy</label>
    <label><input type="checkbox" name="personality"  value="energetic"> Energetic</label>
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Give #radio #checkbox #inputs #Use #input #label
ADD COMMENT
Topic
Name
9+7 =