키업의 인덱스를 얻을 수 없으며 항상 마지막 클래스에 해당하는 인덱스를 얻습니다
는 거꾸로 쓰여 있으므로 $(this).index($(".select2-input"))
$(this).index($(".select2-input"))
는 거꾸로 쓰여 있으므로
![](http://img.php.cn/upload/image/000/000/000/fa3b7970faf780d670535d09b1cfc621-0.png)
이어야 합니다.$(this).index($(".select2-input"))