How can I detect the name of a selected element from a group of select elements on a page?
For example:
<select (click)="functionDetectName()" name="test1">
<select (click)="functionDetectName()" name="test2">
<select (click)="functionDetectName()" name="test3">
functionDetectName() {
console.log("Is there a way to determine the name of the selected select element?");
}
When clicking on the test1 select box, the console should output: test1. Similarly, for test2 and test3.