[EMAIL PROTECTED] wrote:
I tried the other way, adding to $(document).ready this test:
$('body').click(function(event) {
                        if ($(event.target).is('[EMAIL PROTECTED]')) {
                                alert("You clicked a default");
                                return defChanger();
                        }
                });

The function defChanger returns always false, in the purpose of
preventing the submission of any links.

The alert is shown, but the page is opened, thus prevention not
working....

It looks as though it should work. Can you post a stripped down version somewhere public?

You might double-check with the API:

    http://docs.jquery.com/Events#bind.28_type.2C_data.2C_fn_.29

Cheers,

  -- Scott

Reply via email to