Yea i know the form doesn't support the submit which is why i had to
use the click method. Its kind of weird that it works on a number of
my forms but then stopped on two. So was trying to figure the reason
for it. In the end i gave the submit button a class and did it off
that. I'm using live because the buttons are in a list which has lots
of rows (to delete one). But at the bottom is a ajax form to add one
too so the block is update via the ajax request hence the live.

On Aug 5, 4:20 pm, Karl Swedberg <k...@englishrules.com> wrote:
> 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 Swedbergwww.englishrules.comwww.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