Hi JQueriers,
I have a question about selectors. First of all, I have the
following html:
<div id="content">
<a href="#"> <input type="checkbox"
name="option1"
value="Novedad1"> Novedad 1: HOla holaaa </a>
</div>
As you can see, I have a div an inside it a link which has a
checkbox an text.
Well, what I would like to do is to associate a click event when the
user clicks on the link, but with an exception: This event should
raise when the user clicks anywhere on the link excepts on the
checkbox that it is inside the link.
To be honest I don't know how to do it. I've been googling and
JQuering but I've not foud anything useful. I've read about "not" but
I think that it is not useful in this case.
What I have in .js file is:
$('#content a').click( function ()
{
//code
}
);
I would like this click event to raise when the user clicks
anywhere on the link excepts on the checkbox.
Any ideas? Thank in advance!!