jQuery Tips

Keep Selectors Simple

$('li[data-selected="true"] a') // Fancy, but slow  

2 $('li.selected a')  // Better  

3 $('#id')  // Best