Topic: Having Problem With Checkbox
                  
                  Worldofpcgames
                  free
                  asked 6 years ago
                
Expected behavior To Appear Actual behavior Not Appearing At All Resources (screenshots, code snippets etc.) http://prntscr.com/ozqlef
Greetings everyone, i am trying to use checkboxes but they arent showing up, i tried many different ones but they dont work,
Here is my code
           <label class="checkbox" style="text-align: center;">
            <input type="checkbox" class="form-check-input" tabindex="7" value="1" id="terms" name="terms" <?php echo isset($_REQUEST['terms'])?"checked":""; ?> style="float: inherit;"/> Agree our <a href="terms.html" target="_blank">terms and conditions</a>.</label>
        </label>
Can someone please help me out what am i doing wrong, here is an inspect element view http://prntscr.com/ozqlef
                      
                      jouvrard
                      pro
                        answered 6 years ago
                    
It's because you Don't use the "mdb checkbox code" to do your checkbox.
Try with this one:
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="defaultUnchecked">
<label class="custom-control-label" for="defaultUnchecked">Default unchecked</label>
You can find all the doc here: https://mdbootstrap.com/docs/jquery/forms/checkbox/
Jerome
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
 - Premium support: No
 - Technology: General Bootstrap questions
 - MDB Version: -
 - Device: PC
 - Browser: Chrome
 - OS: Windows 10
 - Provided sample code: No
 - Provided link: Yes