Hi, trying to organise some code on a large project i'm doing which
changes alot of code around the page with submit forms. As jQuery
doesn't have a live support for submit elements i thought i'd try my
hand at event bubbling. It works nicely in firefox but isn't working
at all in ie so i thought someone could give me a pointers.

[code]
$('#data').submit( function(e) {
        /* When a edit form is selected */
        if (e.target.className == 'edit_link')
        {
                //ajax request
        }
});
[/code]

i have a div with an id #data inside this div is a table with data and
forms at the end of each of the row to edit parameters. When i click
edit it loads a form in another div outside the #data one via ajax
then the user can change the values and hit update (which has a class
of .edit_link ) at which point it should reload the #data div. The
reloading of the #data div is why i need some sort of live event to
it. I've tried doing the way above and it works great in firefox but
not in ie so anyhelp would be cool. Just to clearify the submit
doesn't fire at all.

Reply via email to