Is there a default onclick action for forms? You're applying the live handler to the form with name="edit". What typically happens when you click a form? Maybe you're using the wrong selector? Or maybe you want to prevent the form from submitting. If the latter, the .live() method does not currently support the following event types: submit, change, focus, blur, mouseenter, and mouseleave.

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Aug 5, 2009, at 4:44 AM, Jaggi wrote:


I have two snippets of code:

This one doesn't work

$("form[name='edit']").live('click', function() {
        return false;
});

This one does:

$("form[name='edit']").click( function() {
        return false;
});

I'm not sure why this is though, are attribute filters not supported
with the live functions?

Reply via email to