$("input").on("click", function(){
//how do i find the the input index here?
});
次のことを行う代わりに、よりスマートな方法を見つけようとしています。良いアイデアはありますか?
$("input").eq(0).on("click", function(){
//do something for eq(0)
});
$("input").eq(1).on("click", function(){
//do something for eq(1)
});