jQuery - automatically submitting a form

Nope, not working for me.

No not like this:


jQuery("#paypalpayment").load(function($) {$('#submit').click();});

Like this:


$('#submit').click();

Thank YOU! Works a charm!

You’re welcome.

You really should place the script away from the central content of the page. Either in the head of the page, or at the end of the body just before the </body> tag.

In either case, you should wrap the jQuery statement with an onready wrapper.


$(function () {
    $('#submit').click();
});