2
Я создаю плагин jQuery, как мне найти элемент .selected
в текущем наборе?Найти элемент в текущем наборе с jQuery
$('a').selected(); // initial set `a`
$.fn.selected = function() {
return $('.selected', this);
// produces `a .selected` but I want to find `a.selected`
}
Ах, конечно, спасибо! – firedev