Sunday, November 30, 2008

[jQuery] Re: Links within links, and overriding clicks.

On Nov 30, 5:33 pm, René <renefourn...@gmail.com> wrote:
> Just wondering...
>
> When you have a link within a link:

No idea why you would do this...

> <a id="main" href="#">This is some long row of test and here is a
> <input type="button" id="clickme" value="button" /> and some more
> text</a>
>
> ...how do you override the parent click event?

$(document).ready(fuction(){

$("a#main").click(function(){ return false;});

});

No comments: