Hi,
I have this markup:
<body>
...
...
<div class="helper">
<div class="menu-container">
<ul class="menu">
<li><a href="#" class="theLink">Link 1</a></li>
<li><a href="#" class="theLink">Link 2</a></li>
<li><a href="#" class="theLink">Link 3</a></li>
</ul>
</div>
</div>
</body>
I would like to select all the elements "a" with class "theLink".
Please note that the "helper" div as well as the "menu-container" div are created at runtime, after clicking on an anchor, by another jQuery plugin so I think I need to use the 'live' feature of jquery.
Thanks for helping
EDIT: @everybody answered Please, have a look a this post.
Basically I am trying to attach a click event to the anchor that have "contactRole" class in that post. That anchors are modified by a plugin. If you want to have a good understanding of what is really needed please read all the comments.
Note that I have simplified the markup here: what is class="theLink" here is class="contactRole" in yesterday post.
Thanks!