I have a website powered by .NET with an existing sign-up box form. I am currently utilizing the JQuery dialog to display a popup window containing another form. However, when attempting to submit this form using a standard submit button, nothing happens.
For my main page signup form to function correctly, I am using the following Javascript:
<input onclick="this.form.action='http://domain.com/post.tml';
this.form.method='post';this.form.enctype='multipart/form-data';this.form.submit();"
type="image" src="/images/ui/btn-getfreereport.gif" alt="Signup" />
Although I attempted to use the same code for the popup form, clicking the submit button resulted in executing the code for the main site's form instead.
I am seeking advice on how to target the Javascript to submit one particular form over the other. Alternatively, if there is a simpler method to ensure successful form submission.
Thank you.