I'm not sure what you're looking for so here is everything I can think of that might be it

A selector for the anchor element only
$("a[href^=myProgram]").click(function() { ... });A selector for the li that has that anchor element
$("li.sub").has("a[href^=myProgram]").click(function() { ... });A selector to find out what the href of the anchor element is:
$("a[href^=myProgram]").attr("href");I hope one of those is what you're looking for.
Dave