Radio buttons not displaying


Topic: Radio buttons not displaying

Clendening pro asked 6 years ago

I am using MDB Pro 4.5.6, and I am unable to get my form radio buttons to show up. Here is what the code looks like:
<div class="form-check"><input class="form-check-input" type="radio" name="ANI" value="1"/></div>
Please assist. Thanks!

Jakub Strebeyko staff answered 6 years ago

Hi there Clendening, Welcome to the Support Board! Label tag is essential for proper rendering of Radio Input's Material Design features, so don't forget to add it. With Friendly Regards, Kuba

Clendening pro commented 6 years ago

Hi Kuba! Thanks for the quick response! I tried to put a label, but the radio button still doesn't show. Here is the code: <pre><div class="form-check"><label for="ani-1">Test</label><input class="form-check-input" type="radio" name="ANI" id="ani-1" value="1"/></div></pre> Thanks!

Jakub Strebeyko staff commented 6 years ago

Hi there, You accurately addressed some lacks in my explanation - please try adding the label <em>after</em> the labeled element and let me know whether it helped. Best, Kuba

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No