bambinou1980 Posted September 29, 2015 Share Posted September 29, 2015 Hello, I have this code here: <div class="col-md-4 col-xs-12 col-sm-12 orderTypes"> <h3 ng-click="goToBusinessIndex();deliveryCondition=1" style="font-weight: 500;font-size: 2.8em" class="searchbychar"> <a href=""><div class="interested-in-font">TAKE-AWAY</div></a> <input type="radio" name="my-checkbox" checked> <!--<i ng-if="deliveryCondition==1" class="fa fa-check"></i>--> </h3> </div> And would like to trigger the same action using the radio button instead but it fails I tried this: <div class="col-md-4 col-xs-12 col-sm-12 orderTypes"> <h3 style="font-weight: 500;font-size: 2.8em" class="searchbychar"> <a href=""><div class="interested-in-font">TAKE-AWAY</div></a> <input ng-click="goToBusinessIndex();deliveryCondition=1" type="radio" name="my-checkbox" checked> <!--<i ng-if="deliveryCondition==1" class="fa fa-check"></i>--> </h3> </div> And that(ng-change) <div class="col-md-4 col-xs-12 col-sm-12 orderTypes"> <h3 style="font-weight: 500;font-size: 2.8em" class="searchbychar"> <a href=""><div class="interested-in-font">TAKE-AWAY</div></a> <input ng-change="goToBusinessIndex();deliveryCondition=1" type="radio" name="my-checkbox" checked> <!--<i ng-if="deliveryCondition==1" class="fa fa-check"></i>--> </h3> </div> Any why please? Thank you, Ben Quote Link to comment https://forums.phpfreaks.com/topic/298359-angular-trigger-and-radio-button/ Share on other sites More sharing options...
scootstah Posted September 29, 2015 Share Posted September 29, 2015 What is failing? What does goToBusinessIndex() do? Where is it defined? Quote Link to comment https://forums.phpfreaks.com/topic/298359-angular-trigger-and-radio-button/#findComment-1521910 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.