Starting with the following html code
<div ng-repeat="item in list">
<input type="text" class="texter">
</div>
I use jquery to listen on keypress on any input listed.
$('.texter').keypress(function(e){
console.log(this);
}
but nothing happens. Even with
$('input').keypress(function(e){
console.log(this);
}
Basically, I want to get the element where keypress event is fired.
Is there a way to get it with jquery?
Note that I already searched for an answer before asking but none seems to do what I'm expecting.