i have a form which is within a div, the form contains an input type=file. I submit the form using
$("#div form").submit();
but i want to detect when the form has actually completed submitting. I have tried:
$("#div form").submit(function()
{
alert("submitted")
});
But this didnt seem to work, the form was no longer submitted and i wouldn’t get the alert either.
Then i tried:
$("#div form").submit(showalert());
function showalert()
{
alert("show");
}
this then showed the alert but still didnt submit.
Anything I’m missing?
Thanks
Marcel.
You could try: