I think it's simple but it doesn't work... to me. ;-)
I want to fire an event when I click on that <a> link inside a
<div>...
Inside of the <div id="id_div"> there are:
<b> </b>
<i> </i>
<a> </a>
So <a> would be the third element but it's the first and unique
<a>....
I tried something like that:
$(document).ready(function(){
$("#id_div a").click(function(){ etc...
but it doesn't work.
I tried also:
$(document).ready(function(){
$("#id_div").find("a").click(function(){ etc...
and it doesn't work as well...
If I do this it works but not the way I want to:
$(document).ready(function(){
$("#id_div").click(function(){ etc...
because, of course, it fires the event wherever you click inside of
the <div>...
instead I want to fire the event just when you click on the <a> link.
any idea?
thanks in advance!!!