# Make a yes or no button in Popup/Dialoge

**URL:** <https://forum.ionicframework.com/t/make-a-yes-or-no-button-in-popup-dialoge/55242>\
**Category:** ionic-v1\
**Created:** [June 20, 2016, 6:07am UTC](https://forum.ionicframework.com/t/make-a-yes-or-no-button-in-popup-dialoge/55242 "2016-06-20T06:07:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghatwai](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@Ghatwai](https://forum.ionicframework.com/u/Ghatwai)\
**Post date:** [June 20, 2016, 6:07am UTC](https://forum.ionicframework.com/t/make-a-yes-or-no-button-in-popup-dialoge/55242/1 "2016-06-20T06:07:41Z")

</div>

I have 2 radio buttons  
When I select one of the two radio buttons, should display the text of the selected radio button  
(example : first radio button). Can anyone please provide the javascript code for the it.  
Thank You
