1

Hi I'm creating an angularJs App. The forms work fine but the radio buttons won't appear. All I can see the labels but not the actual buttons. I've followed instructions online but it seems to be hidden. I'm trying to create a set of 6 radio buttons where the user has to choose only one button.

my plunker

The below is one of the form partials.

Thanks

<div>
  <div class="form-wrapper">
    <p>Choose a fund</p>


<br>

To help you decide which fund is right for you, we've provided a summary of each below.
<br>
 Simply click on the magnifying glass to view the individual fund details.
<br>
 You can also compare all funds in this risk category using the fund comparison button at the bottom.
<br>
 When you've reviewed your options and have made your choice, click 'select'.
<br>
<br>
  <!-- <form class="form-horizontal" role="form">-->
     <!-- <div class=" form-group">-->
       <!-- <div class="col-sm-6">-->
         <!-- <div class="form-group">-->








    <label for="pearRadio">SEI Balanced Fund</label>
    <input id="pearRadio" type="radio" ng-model="fruitValue" value="pear" /><br />

    <label for="peachRadio">7IM AAP Balanced Acc Strategy</label>
    <input id="peachRadio" type="radio" ng-model="fruitValue" value="peach" /><br />

    <label for="apricotRadio">Close Balanced Portfolio Fund Accumulation</label>
    <input id="apricotRadio" type="radio" ng-model="fruitValue" value="apricot" /><br />
    <label for="pearRadio">Allianz RiskMaster Moderate</label>
    <input id="pearRadio" type="radio" ng-model="fruitValue" value="pear" /><br />

    <label for="peachRadio">Schroder MM Diversity Balanced Fund Accumulation</label>
    <input id="peachRadio" type="radio" ng-model="fruitValue" value="peach" /><br />

    <label for="apricotRadio">Goldman Sachs Dynamic</label>
    <input id="apricotRadio" type="radio" ng-model="fruitValue" value="apricot" /><br />
    <br />

    <strong>Selected Fund:</strong> {{fruitValue}}
  </div>


      <button class="btn btn-primary"
ng-click="goToNextState('form.account')">Next</button>
    </form>
  </div>
</div>
1
  • I don't see the radio button HTML snippet in your plunker. Commented Dec 30, 2014 at 13:23

1 Answer 1

1
  1. First of all, do not repeat values if you want that a user choose only one radio button.

  2. Check the .form-wrapper class css properties, maybe input opacity is 0 or display none...

  3. I made a demo based on your code and works fine:

    <input id="pearRadio1" type="radio" ng-model="fruitValue" value="pear1" />
    

    I made some changes on the values.

DEMO: http://jsfiddle.net/ba80g13e/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.