Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Shuming Li
PLUS
Shuming Li
Courses Plus Student 3,592 Points

not able to check the checkbox

On the bootstrap website, I can't find a checkbox snippet that's exactly like in the video(not sure if the version is newer), so I found one that is similar. However, it doesn't work. So I tried to type the code in the video, and it does work either. Right now, I'm not able to check my checkbox.

The one I found on the website:

<div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="customCheck1"> <label class="custom-control-label" for="customCheck1">JavaScript Frameworks</label> </div>

The one I copied from the video:

          <div class="form-check">
            <label class="custom-control custom-checkbox">
              <input type="checkbox" class="custom-control-input">
              <span class="custom-control-indicator">efrge</span>
              <span class="custom-control-description">dfd</span>
            </label>
          </div>

1 Answer

Dale Severude
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,349 Points

This code looks like it is for a custom form where you need to create our own custom CSS. I would recommend copying in some 'standard' checkbox code that will work right out of the box.