Tried to submit a dynamically created form from an ajax response using jQuery. But couldn’t get it to work. Used the call $(“#formId”).submit();
At last I found the cause why the form wasn’t submitting. In the form a button element with name “submit” was existing once i renamed the button, the form could be submitted. =)
<form id="theForm" method="post">
<input type="hidden" value="0">
<button name="submit" type="button">
Renamed the button, then the form could be submitted!