$.getIndexedAnchor = function(_parent, _idx) {
var $parent = _parent,
$el = $parent.find('a');
if ($el.eq(0).parent('li').length) {
$el = $parent.find('li');
if (_idx === undefined) {
$el = $el.find('a');
} else {
$el = $el.eq(_idx).find('a');
}
} else if (_idx !== undefined) {
$el = $el.eq(_idx);
}
return $el;
};
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.