VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/how-to-get-the-value-of-radio-button-using-angularjs/

⇱ How to get the value of radio button using AngularJS ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to get the value of radio button using AngularJS ?

Last Updated : 15 Jul, 2025

In this article, we will see how to get the value of the radio button using AngularJS, along with understanding the basic implementation through illustrations. The value of the checked radio button can be fetched with the help of the ng-model directivethat helps to bind the data with the specific element & stores the required value in a variable, that can be utilized whenever we require that particular value.

Example 1: In this example, the selected value will be rendered with an alert message, on clicking the button.

Output:

👁 Image
 

Example 2: In this example, the selected value is shown in a <p> tag using the Interpolation in AngularJS.

Output:

👁 Image
 
Comment
Article Tags:

Explore