Get id of specific element not the parent element
<p>I want to get the id of specific element on click, but the problem is that the if the element doesn't have an id, then the function still in a loop for all element's parents that have an ID!!</p>

<p>here's an example, how can I make it alert only for once for specific element?</p>

<p><a href="http://jsfiddle.net/RUadJ/1/" rel="nofollow">http://jsfiddle.net/RUadJ/1/</a></p>
