when i click on a link i take it's href value in a variable (the number represents an unique id), then...i have a separate ul:
<ul class="class_one">
<li class="class_two"><a href="2345">some text</a></li>
<li class="class_three"><a href="6789">some text</a></li>
</ul>
what i'm trying to do is to see if i have any "a" in my "ul" that has the same id that i stocked in my variable.
i tried something like this( of course with no result ):
$('ul.class_one').find('a[href="' + myVar + '"]')
//and if it finds no element do something
//i think is something wrong with the quotes ('a[href="' + myVar + '"]')