Why does this brute force not work for me:
$('#div').children('li').children('a').each(index) { //тело цикла } ?
Why does this brute force not work for me:
$('#div').children('li').children('a').each(index) { //тело цикла } ?
And why such a perversion?
$('#div>li>a').each(function(index){ /* code */ }); children() , find() always enough. - Sh4dowMaybe because of a syntax error?
$('#div>li>a').each(function(index){ тело цикла }) Source: https://ru.stackoverflow.com/questions/97765/
All Articles