I encountered an issue where the error myFunction()
IS NOT DEFINED is appearing:
app.controller('myctrl',function(){
myFunction();
});
function myFunction() {
debugger;
document.getElementById("abc").disabled = false;
}
In this scenario, myFunction
is set as onclick="myFunction()"
but I am attempting to call it within my function.
What am I doing wrong? Any assistance would be greatly appreciated.