You need to sign in to do that
Don't have an account?
Anna Lu 6
Can we use Document.getElementById() in Lightning?
As the title.
Given window. in JS cannot be used now in Lightning, can we still use document.getElementById() in Lightning? Thanks in advance.
Given window. in JS cannot be used now in Lightning, can we still use document.getElementById() in Lightning? Thanks in advance.
Refer below links
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_code.htm
You can do it by
var discount = component.find("AURA-ID").get("v.value");
AURA-ID is compoent ID .