About this question
I have mentioned everything correct, but still i am facing the issue, may i know if there are any trouble shooting points. code: Component:
js controller:
var selectedSOrg = component.find("selctOrg").get("v.value");
Error is: [Cannot read property 'get' of undefined]
Below is the code that i had in my controller and helper.
controller:
({ doinit : function(component, event, helper) { helper.fetchSBHelper(component, event, helper); } })
Helper:
({ fetchSBHelper : function(component, event, helper) { var sOrg = component.find("selctOrg"); var selectedSOrg = sOrg.get("v.value"); alert("selectedSOrg"+selectedSOrg); } })