Код: Выделить всё
$('#my_select').bind('change', function(ev) {
if(my_condition)
{
ev.preventDefault();
return false;
}
});
Каковы еще способы сделать это?
Подробнее здесь: https://stackoverflow.com/questions/542 ... for-select
Код: Выделить всё
$('#my_select').bind('change', function(ev) {
if(my_condition)
{
ev.preventDefault();
return false;
}
});