У меня есть 5 combobex с тем же классом.Как найти 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