How to make Lightning:Inputfield as blank/null based on condition?

I have tried different ways to accomplish this as below

1) component.find("auraID").set("v.value","") - I have used null/passing variable as well for the last attribute.
2)  var ean = component.find("EAN");
            $A.util.addClass(ean, "displaydetails");

Style : .THIS displaydetails{
    display : none;

but it is not working let me know if you have solution.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.