나는 같은 클래스의 콤보 5 개가 있습니다.선택한 사용자 값을 가진 comboxbox를 찾는 방법
내가 콤보가
내 시도 그들에 값 5를 선정했다 그중 찾을 싶습니다
$(document).ready(function($){
previous = 0;
$('.check').focus(function() {
// Store the current value on focus and on change
previous = this.value;
}).change(function() {
// Do something with the previous value after the change
//change previous container with value
newVal = this.value;
//alert(previous);
console.log('Old Val: ' + previous + '- new val:' + newVal);
$lst = $('.ranking option[value=' + newVal + ']:selected');
console.log('one ' + $lst.length);
// Make sure the previous value is updated
previous = this.value;
});
});
코드가 추가 ..... – KoolKabin