I have found a tutorial on how to work with the angular js, but when I try to implement it into my work, I do not get the same results. Here is the original:
And here is my work:
Also, how can I get the values from the selected button with javascript (question, suggestion...)?
<div class="btn-toolbar">
<div name="cate" class="btn-group" required="required">
<button class="btn" href="#"><i class="icon-coffee"></i> Question</button>
<button class="btn" href="#"><i class="icon-plus-sign-alt"></i> Suggestions</button>
<button class="btn" href="#"><i class="icon-stethoscope"></i> Product Support</button>
</div>
<span class="label label-danger" data-ng-show="submitted && helpForm.cate.btn.$error.required">Required!</span>
Thank you!
type=button"so they don't submit and add anng-clickthat changes a scope variable