i have a couple of these in my HTML
<input id="1" type="button" value="1" >
and one
<input type="text" name="answer" id="answer">
in my js i have
sum =(eve)=>{
dir=$("input:text").val()+eve.target.value;
$("input:text").val(dir)
}
for(let i=1;i<6;i++){
$("#i").click(sum);
}
why doesn't the click event inside the loop work?