How can I get name of input text in lightning ? I was able to recover just the value and otherwise I have undefined as result
<aura:handler name="change" value="{!v.filtreNameText}" action="{!c.filterChange}"/>
<lightning:input class="CASE" name="input2" value="{!v.filtreNameText}" />
ControllerJs
filterChange: function(component, event,helper) {
var Nametxt = event.getParam("value");
var Nametxxt = event.getSource().get("v.name");
var Nametxxxt = event.currentTarget ;
console.log(Nametxt+ " " + Nametxxt + " " + Nametxxxt);
}