you could do something like this...
$(document).ready(function () {
document.NAME_OF_FORM_HERE.submit();
});
Rick Faircloth wrote:
Sorry I don't have an answer for you, Adam. (I'm new to js and jQuery)
But I was just curious as to what you were trying to do with
a dynamically created (and dynamically filled?) form that submits
immediately?
Rick
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Adam
Sent: Friday, December 12, 2008 11:03 AM
To: jQuery (English)
Subject: [jQuery] Submit a form automatically
I have a dynamically created form that I'd like to submit
automatically after it loads. It doesn't look like forms have an
onload event. I would use the window onload, but the form isn't
necessarily around when the window loads - it is created later in a
jquery popup.
Any suggestions? I am using the jquery form plugin if it matters.