tags:

views:

65

answers:

1

The code below works perfectly in firefox and chrome, but not in iexplorer. Can anyone help me.

    $('form').live('submit', function()
    {

      $(this).ajaxSubmit(
      {
        target: '#target',
        url:    acao//'../paginas/addperson.php'
      });
      return false;
    });
+5  A: 

The jQuery $.live() function currently does not support the submit event.

Supported events are: click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup

If you are not dinamically adding forms to your page, there is no need to use live, you could just use

$("form").submit(function(){
...
})

Or even if forms are added on-the-fly, You attach the above code to individual forms at the time of their creation

duckyflip