I'm currently working on implementing a drop-down menu using the <select>
element in HTML. Here is the code snippet I have so far:
<select id="Parameter1" onchange="function1()">
<option value = "0105" name = "Frequency">Frequency</option>
<option value = "0106" name = "Motor Current">Motor Current</option>
</select>
The AngularJS function that I am attempting to execute is as follows:
$scope.function1 = function(){
var paramId = document.getElementById("Parameter1").value;
}
However, when running this code, I encounter an error message:
Uncaught ReferenceError: function1 is not defined
Any assistance on resolving this issue would be greatly appreciated.