Topic: checkbox asp.net
No nothing, just MDB running on asp.net. And the odd thing it works fine at www.ovl.co.uk which is similar site for same company.
I have updated the Label for ID name but still not selectable. Any ideas?
<label class="custom-control-label" for="MainContent_CheckBoxMarketingFP">I would like to receive the latest Vans4Lease offers</label>
There's one problem with your code. Let's take a look at your code:
<div class="custom-control custom-checkbox"> <span class="custom-control-input"><input id="MainContent_CheckBoxMarketingFP" type="checkbox" name="ctl00$MainContent$CheckBoxMarketingFP"></span> <label class="custom-control-label" for="CheckBoxMarketingFP">I would like to receive the latest Vans4Lease offers</label> </div>
Your input's ID is MainContent_CheckBoxMarketingFP while the label is looking for CheckBoxMarketingFP. Everything should work after you change the "for" to the ID used by your input
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.7.3
- Device: All
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: Yes