We shouldn't have to do it this way we Building a template-driven form. I am aware that I can get the values of a form using JSON.stringify(this.formName.value) However, I want to get a single value from the form. but how can get id of selected option value. Angular is a platform for building mobile and desktop web applications. Get only value of selected option in onchangeevent. According to given regex, validation will be performed. Join the community of millions of developers who build compelling user interfaces with Angular. We use Angular FormBuilder to create a FormGroup object (form property) which is then bound to the template
get element by formcontrolname