I have a form which is injected into the page body via php. I have a button which triggers a javascript validation function, and at the end it should submit the form but it doesn't seem to want to submit.
I'm using the function call:
document.myform.submit();
The script definitely reaches this function call, as I have a debug alert() message pop up successfully. Its located in a validate&submit function which is defined after a jquery $(document).ready() function.
I've checked all the obvious things like form tags opened/closed properly, form name correct etc but I can't seem to work out the problem.
Any ideas? I haven't submitted the whole file as its cluttered with other stuff, but I can if needed.
Many Thanks, Oliver
Heres the html source after php has done its thing: http://pastebin.com/2EaucEar