Activity › Forums › Salesforce® Discussions › How can you access a value from an attribute? Salesforce® Discussions How can you access a value from an attribute? Posted by Sumit kumar on June 4, 2020 at 7:10 AM How can you access a value from an attribute? Aditya replied 5 years, 12 months ago 3 Members · 2 Replies 2 Replies MOHIT Member June 4, 2020 at 3:04 PM You can get as shown below component.get(“v.falseValue”) Complete code is here <aura:component> <aura:attribute name=”falseValue” type=”boolean” default=”false” /> <ui:button label=”Log Value” press=”{!c.logValue}”/> <aura:component> ({ logValue : function(component, event, helper) { console.log(component.get(“v.falseValue”)); } }) [adinserter block='9'] Aditya Member June 4, 2020 at 3:17 PM Hi, The getAttribute() method returns the value of the attribute with the specified name, of an element. Tip: Use the getAttributeNode() method if you want to return the attribute as an Attr object. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me