I'm not sure how to do this as it stands - I've never been particularly au
fait with text nodes and how to work with them.
However, a possible solution is to put the text next to the checkbox in a
<span> and then attach the click event to that.
--rob
On 8/9/07, David Garcia Ortega <[EMAIL PROTECTED]> wrote:
>
>
> 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!!
>
>
--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.