need help with parent and not / filter

need help with parent and not / filter

Hi all, I would to achieve the same result of the below function without using callbacks .

the function is:

  1. $("#user-options-menu").find('a').each(function() {
  2. // now I want to filter any <a> tag with <li> parent
  3.         if (!($(this).parent().is('li'))) {
  4.             $(this).button();
  5.         }
  6.     });

I've tried with $("#user-options-menu").find('a:not(li:parent)') but without result.

Any suggestion ?

Thank you